FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    How we can check If refresh token is expired?

    Scheduled Pinned Locked Moved Unsolved Q&A
    1 Posts 1 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jinalptl1993
      last edited by

      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!

      1 Reply Last reply
      Reply Quote 1
      • danD dan moved this topic from Q&A on
      • danD 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
      • First post
        Last post