-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The page doesn't force the user to login after idToken expired #538
Comments
Hi @SasSam - thanks for raising this The Once the token has be validated and a session established, the |
Closing due to inactivity |
Im seeing this same behaviour in my NextJS app (even for deleted users) and setting the Refresh Token's "absolute expiration" and "inactivity expiration" seems to have no effect. How do I force a user to login after they have been deleted, their password has been reset, etc? There appears to be no solution to this other than detecting it in subsequent, client-side, API calls and forcing a sign out event. Documentation seems poor for this and every thread I find here or on the help forums gets closed for innactivity" without a clear guide provided. Do you have a documentation link? Both of the links above for |
Description
It's most likely a question rather than an issue report. I've got an SSR page with a mandatory login, so I use the
withPageAuthRequired()
for that. All the auth API endpoints are working fine; the user can log in and out. However, after a successful login, the user can stay on the page, refresh it, etc., even when theidToken
expired (checked with jwt.io). It doesn't force the user to log in again, nor does it renew theidToken
.So my questions are:
idToken
? Or how could I force thewithPageAuthRequired()
to validate theidToken
and redirect the user to the login page if it's expired?Thank you for your help in advance!
Reproduction
I have this SSR code on the page:
Environment
The text was updated successfully, but these errors were encountered: