Replies: 1 comment 2 replies
-
So, no way to know when the token is about to expire ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I use Next.js 14 & Auth.js 5
I want to check if session is about to expire to ask user if he/she is still here (reading, talking, watching a vidéo ...)
But, when I SWR the api route and get the token with auth(), the function automatically rotates the expiry date so it will never expire.
How should I do to get the expires value of the current token without renewing it ?
Regards
Beta Was this translation helpful? Give feedback.
All reactions