-
I am using fusionauth in my Next Js application.
In my API, I am checking If the access token is expired or not. If the token is expired, I am generating a new token based on the refresh token.
Sometimes I am facing that while renewing access token I am getting 400 so that means refresh token is expired and my API got failed and user redirected to home page suddenly.
What I would like to check is, whenever the application gets loaded at that time check If a refresh token is valid for the next 24 hours or not. If expired then redirect to the home page else user can visit the requested page.
Thanks a lot in advance!
-
D dan moved this topic from Q&A on
-
D dan moved this topic from Frequently Asked Questions (FAQ) on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login