Developers

When to refrash authentication token

Comments

1 comment

  • Avatar
    Miguel Estrada

     

    The access token is delivered together with an expiration time.  Use this time to set a refresh interval and refresh the token.  If using the 'code' flow (ie oauth as a user) then make sure to get the new refresh tokens as well and use them in follow up requests.  If using 'client-credential' flow (ie. an app getting a jwt to act as itself) then just use the id/secret as usual.

Please sign in to leave a comment.