Access Token Expiration #224
mark3grahams
started this conversation in
General
Replies: 2 comments 1 reply
-
Hi @mark3grahams. There is currently no auto-renew functionality for tokens when they expire. You could either check for this in code prior to subsequent calls or up the lifespan. Feel free to submit an enhancement as well. Out of curiosity, how long is the lifespan? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The default seems to be 30 minutes, which isn't a big deal. I was more curious about if the refresh token was used and how. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am new to using this module.
After a while of use, I start getting "(401) Unauthorized."
I create a new session using "New-ServiceNowSession" everything is fine for the Access Token life of the new token.
Is this normal or should the module be requesting a new Access Token using the RefreshToken? Or is there some other way to do this that I am missing?
Beta Was this translation helpful? Give feedback.
All reactions