• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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
365
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 17 May 2023, 18:04

    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!

    D 1 Reply Last reply 18 May 2023, 00:27 Reply Quote 1
    • D
      dan @joaogoncalves
      last edited by 18 May 2023, 00:27

      @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 18 May 2023, 09:29

        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!

        D 1 Reply Last reply 31 May 2023, 14:31 Reply Quote 0
        • D
          dan @joaogoncalves
          last edited by 31 May 2023, 14:31

          @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