Please include the following information in your post:
- Which SDK this is regarding: auth0 guardian-js
- SDK Version: 1.3.0
- Platform Version: e.g. Node 12.19.0
- Code Snippets/Error Messages/Supporting Details/Screenshots:
I’m using classic universal login with a custom MFA page using the guardian js library. I would like to allow a user to tick a checkbox that lets them keep their session for 30 days just like the MfaWidget does. However, I cannot find a way to do this.
I am aware that I can set up the mfa session rule to keep a user logged in for the duration of their session. However, how can I let the user make this decision? They should be able to tick a “remember browser” option and if ticked, MFA will not be prompted again. However, if left unticked, the user should get a challenge again on next login.
How can I detect the user’s choice with rules in this way?