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

    Propagate rememberDevice property from Login page back to redirect or similar

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    login theme propagate rememberme
    2
    3
    2.0k
    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.
    • C
      carvalhom
      last edited by

      Hi there,

      I would like to know if there is a way to propagate a variable from the login page back to my application in some way. The application is running in an electron container and we have an internal remember me system which logs the user straight into the app for a period of time. We would like the remember me check box on the Fusion auth login page after a /oauth2/authorize.

      Is there a way to add the parameter to the redirect or even be able to add it using a lambda to the JWT claims later when a token is requested?

      Please let me know if you require any further information, your help will be much appreciated.
      Thank you.

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

        @carvalhom

        You could set parameters in the login success webhook to receive info about whether the rememberMe box was checked. You'd use JavaScript to set a form field value that is included in the webhook body. Here's an example of how this would work: https://github.com/FusionAuth/fusionauth-issues/issues/1660

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

        C 1 Reply Last reply Reply Quote 1
        • C
          carvalhom @dan
          last edited by

          @dan Thank you for the prompt response I will give this a try soon.

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