How to check token expiry?

Hi all

Is there any method to find out when a particular OAuth token (specifically the one used for SCIM) expires?

Hello,

Do you mind sharing your use case? You can see the "accessTokenValiditySeconds" for your OAuth client with the GET/api/v2/oauth/clients/{clientId} endpoint. Based on that value, you can calculate when a token expires by tracking when it gets created.

Best

The exipry time is provided when the token is first obtained. Your app should keep track of that if that's something it needs to know in the future. Also keep in mind that a well-formed application will never rely on the stated expiry time and will be able to gracefully handle a token expiring at any time for any reason.

Thanks Tim, the problem in this case is the number of other parties involved in the SCIM app so was hoping maybe they themselves could call on another API to check just the expiry time/date on the current token. We've ended up going with a calendar (Outlook) reminder to a group.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.