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 README.md file of the github page of this library here: https://github.com/auth0/auth0-guardian.js. 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
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.