Hardcoded OTP for Automating test cases

For automating authentication test cases, we previously used email + a hardcoded OTP. How can we achieve the same in Auth0’s passwordless login? Is there a way to modify the triggers to facilitate this, or is there a better approach for automating the process? Would love to hear your thoughts on the ideal way to implement this.

Hi @kushankurxd

Welcome to the Auth0 Community!

I believe that you can implement an automated system for testing cases, using a hardcoded OTP, via Passwordless Authentication with Email and Configure a Custom Email Provider.

This will require a custom script that would call the Auth0 API endpoint to have a code sent to the specified email address, then access the inbox of that address to retrieve the code and use it to complete the authentication process.

Hope this helps!
Gerald

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.