<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y000091l9FBSAYOkta Classic EngineSingle Sign-OnAnswered2024-03-25T17:23:36.000Z2020-08-27T15:11:14.000Z2020-08-28T09:41:25.000Z

celpy (celpy) asked a question.

How application can get refresh token expiration time?

How application can get refresh token expiration time?

Or if that is not possible how application can get a notification that refresh token will expire in say 1 day.

 

Thank you


  • VanH.30758 (Lytx, Inc.)

    Hi Ruslan,

     

    Are your concerns that a token will expire on you? I believe they tokens last for 30 days if unused.

     

    When the token is used it gets renewed for another 30 days. I've heard people get around this by using the API key in a scheduled GET request to renew the token.

     

    Maybe this will work for you?

    Expand Post
  • celpy (celpy)

    Do you mean the "refresh token" will expire in 30 days only if it was not used? Or it will expire independently of its usage?

    In other words the question is: will application be logged out in 30 days if it is used day to day?

    I see that refreshing an "access token" returns also "refresh token" but in my case it didn't change comparing with initial refresh token.

     

    Also my main question was: how to get "refresh token" expiration time in the application? Hard-coding is not an option because application will work with different authorization servers which can have configured different refresh token expiration time.

    Expand Post
This question is closed.
Loading
How application can get refresh token expiration time?