Request token/ticket for auth0-guardian JS library configuration


I am trying to implement the MFA enrollment/authentication workflow in my React application. I am using the auth0-guardian JS library for this. I have not used this library before, so I was following the documentation given in the file of the github page of this library here: I have used the latest version available from npm.

When setting up the guardian configuration, I have entered all of the details, except for the requestToken. I am not sure what should I pass here. The document says requestToken or ticket.

Below the configuration code, it says “Use of requestToken or ticket depends on the authentication method. Ticket corresponds to a previously generated enrollment ticket.” This does not really help much.

The MFA authentication method I plan to use is SMS and no other. So, please tell me what value needs to be passed here and how do I get it. I have scoured the documentation, but I was unable to find anything substantial on this matter.

Please help. I am new.

Hey there!

Can I ask you to raise this as a GitHub issue in the repo you mentioned so we can work on that directly with the repo maintainers? This way we’ll be able to solve it most effectively. Make sure to share the link to the issue with us. Thank you!


I see that there is already an issue for this in github. But it has been open since 2018.

This is a very critical functionality for us and therefore a quick resolution would be incredibly helpful.

Got it. Let me ping repo maintainers about that!