Watson Workspace will no longer be available after February 28, 2019. Learn more.


When to refrash authentication token


1 條評論

  • 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.