Access and refresh tokens

miyu
Tera Guru

We manage the tokens used to connect to Google Calendar from ServiceNow.
As shown in the image below, it manages access and refresh tokens, with access tokens expiring in 30 minutes and refresh tokens expiring in 24855 days.

find_real_file.png
It is recognized that the access token will be regenerated by the refresh token when it expires, so there is no error.
However, the following error seems to occur due to the expiration of the access token.

ProcessingException: User Not Authenticated. Could not retrieve a new access token with the refresh token. invalid_grant, Token has been expired or revoked.


Why is this? Am I understanding this incorrectly?

5 REPLIES 5

Hello,

It's possible, but that would depend on your implementation. Although this is 2 years old, I would suggest giving this a read through for guidance: https://community.servicenow.com/community?id=community_article&sys_id=728b5936db82d0104aa5d9d968961905


Please mark my answer as correct/helpful if it has helped you.

Thanks,
Logan
--
LinkedIn