Skip to content

Token expiry #58

Closed Answered by isFakeAccount
cdpeac asked this question in Q&A
Discussion options

You must be logged in to vote

In version 2.0.0 I made it easier to get the refresh token expiration time. See the documentation

https://psnawp.readthedocs.io/en/latest/psnawp_api.core.html#psnawp_api.core.authenticator.Authenticator.refresh_token_expiration_time

psn = PSNAWP(getenv("NPSSO_CODE", "NPSSO_CODE"))
print(psn.authenticator.refresh_token_expiration_time)

This should work and you can write code to notify you at this time.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by isFakeAccount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants