Navigation

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

    UNSOLVED jwt expiration time

    Q&A
    2
    2
    92
    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.
    • S
      sandiprghane last edited by

      is it possible to extend access token expiration time based on login user ?

      • user-1 token expiration time is 1 day

      • user-2 token expiration time is 2 days

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

        @sandiprghane

        Not directly, no. The exp claim is something that you can't modify. And 24 hours is a long time for a JWT anyway (we recommend seconds to minutes to ease revocation).

        But you could set things up so that each of those folks got a refresh token, but that user-1's refresh token was revoked so they can't use it.

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

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