Remember browser with classic universal custom mfa

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?

Hi @inthegreenwild,

Welcome to the Auth0 Community!

Seems like this has been already answered in this topic. Adding remember browser to custom Guardian multifactor widget

Can you please check it and let us know if that helps?

Thank you!


Is there a way to view the payload in rules? This does work but I don’t really understand how or why. There’s no visible metadata passed to rules or user that I can tell.