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

    Validate refresh tokens

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    refresh token
    1
    2
    2.1k
    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.
    • danD
      dan
      last edited by

      Hi,

      How can I validate a refresh token to see if it is a valid?

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @dan
        last edited by

        A refresh token is opaque; you cannot validate it yourself.

        The general pattern for validating a refresh token is to use it to refresh the JWT, and if the refresh attempt fails, that indicates the refresh token is no longer valid.

        You could also retrieve a user’s refresh tokens and compare it to the ones returned by FusionAuth.

        More details:

        https://fusionauth.io/docs/v1/tech/apis/jwt#refresh-a-jwt
        https://fusionauth.io/docs/v1/tech/apis/jwt#retrieve-refresh-tokens

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • First post
          Last post