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

    Support to specify refresh token expiration time on Login API request

    Scheduled Pinned Locked Moved
    General Discussion
    2
    4
    354
    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
      joaogoncalves
      last edited by

      Hi everyone!

      We have an application with all our users but we have to distinguish the logins that are coming from the mobile and web apps and set different durations to the issued refresh token. Since this setting is an application (or tenant setting), how can we do such a thing?

      Thank you!

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

        @joaogoncalves

        Can you give an example of what you're trying to accomplish with an example, please?

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

        1 Reply Last reply Reply Quote 0
        • J
          joaogoncalves
          last edited by

          Hi @dan !

          Basically, I need an optional parameter on Login API endpoint that overrides the Application/Tenant JWT token and refresh tokens duration times.

          The use case is 1 Application with all the users and I need different session times for the web and mobile apps.

          Maybe there is another workaround for this scenario?

          Thank you!

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

            @joaogoncalves Hiya, I don't think that is supported. I'd suggest using two different Application configurations in FusionAuth, though I'm sure that's something you've already considered.

            Feel free to file a feature request: https://github.com/FusionAuth/fusionauth-issues/issues/

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

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