# Send a fixed OTP for automate testing

**URL:** <https://community.auth0.com/t/send-a-fixed-otp-for-automate-testing/120464>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [November 8, 2023, 11:41am UTC](https://community.auth0.com/t/send-a-fixed-otp-for-automate-testing/120464 "2023-11-08T11:41:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishal.agarwal](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@vishal.agarwal](https://community.auth0.com/u/vishal.agarwal)\
**Post date:** [November 8, 2023, 11:41am UTC](https://community.auth0.com/t/send-a-fixed-otp-for-automate-testing/120464/1 "2023-11-08T11:41:54Z")

</div>

Hello,

I’ve implemented Passwordless Authentication with SMS.

I want to automate the login testing but every time it sends a different OTP which makes it very difficult to automate the process. So what I want is I want to send a fixed OTP until the website is in the test environment. I couldn’t find any documentation regarding this implementation. Can someone please give me guidance regarding the same?

Thanks!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [November 9, 2023, 11:04pm UTC](https://community.auth0.com/t/send-a-fixed-otp-for-automate-testing/120464/2 "2023-11-09T23:04:29Z")

</div>

Hey @vishal.agarwal !

> [@vishal.agarwal](#):
>
> So what I want is I want to send a fixed OTP until the website is in the test environment. I couldn’t find any documentation regarding this implementation. Can someone please give me guidance regarding the same?

Unfortunately this is not something that is supported out of the box so to speak. The only way I can see this working is somehow mocking the calls/OTP to Auth0 in your testing 😕 Not ideal, but I am personally not aware of any way to achieve what you are looking for.

It might be worth opening a [feedback request](https://community.auth0.com/c/feedback/95).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 23, 2023, 11:05pm UTC](https://community.auth0.com/t/send-a-fixed-otp-for-automate-testing/120464/4 "2023-11-23T23:05:26Z")

</div>

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