Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  loginPKCEGrant missing tokenExpiryTime

    Posted 20 days ago

    Given the upcoming deprecation of loginImplcitGrant, we are trying to use the loginPKCEGrant from the Javascript SDK.  We noticed one difference is that the implicit grant returns an authData object which has tokenExpiryTime but when using the loginPKCEGrant, that field is not filled out.  Is that a problem with the PKCE function in the javascript SDK?

    Implicit Example

    {"accessToken":"qVnglPHpDG3_4...","tokenExpiryTime":1778264576162,"tokenExpiryTimeString":"Fri, 08 May 2026 18:22:56 GMT"}

    PKCE Example

    {"accessToken":"Fr1h_...",}


    #PlatformSDK

    ------------------------------
    Michael Shrall
    Director, Product Management
    ------------------------------


  • 2.  RE: loginPKCEGrant missing tokenExpiryTime

    Posted 19 days ago

    Hello,

    Thanks for reporting this. I just had a look at the source and it is a miss (when persistent settings is turned on). It should be fixed in next release. I'll update this post when the build is done.

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 3.  RE: loginPKCEGrant missing tokenExpiryTime

    Posted 19 days ago

    Thanks for the quick review and reply!  



    ------------------------------
    Michael Shrall
    Director, Product Management
    ------------------------------



  • 4.  RE: loginPKCEGrant missing tokenExpiryTime

    Posted 14 days ago

    Hello,

    The fix is available in the last version (built few minutes ago) - version 252.1.0

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 5.  RE: loginPKCEGrant missing tokenExpiryTime

    Posted 11 days ago

    I was able to verify the new version has fixed this issue.  Thanks for the quick turnaround!



    ------------------------------
    Michael Shrall
    Director, Product Management
    ------------------------------