Propagate rememberDevice property from Login page back to redirect or similar
-
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. -
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 -
@dan Thank you for the prompt response I will give this a try soon.