# How do I get the one time code for my E2E testing?

**URL:** <https://community.auth0.com/t/how-do-i-get-the-one-time-code-for-my-e2e-testing/81544>\
**Category:** Get Help\
**Tags:** api, auth0, login\
**Created:** [April 11, 2022, 11:26am UTC](https://community.auth0.com/t/how-do-i-get-the-one-time-code-for-my-e2e-testing/81544 "2022-04-11T11:26:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fernandoalugo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fernandoalugo/32/33838_2.png) [@fernandoalugo](https://community.auth0.com/u/fernandoalugo)\
**Post date:** [April 11, 2022, 11:26am UTC](https://community.auth0.com/t/how-do-i-get-the-one-time-code-for-my-e2e-testing/81544/1 "2022-04-11T11:26:48Z")

</div>

Currently our app uses the one-time code sent by e-mail. But we want to include end to end testing using Playwright and login the user first.

What’s the best way to achieve this?. Do we need to change the way we currently login in for testing? or is it possible to bypass this login method?.

Thanks in advance!.

---

<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:** [April 12, 2022, 11:13pm UTC](https://community.auth0.com/t/how-do-i-get-the-one-time-code-for-my-e2e-testing/81544/3 "2022-04-12T23:13:49Z")

</div>

Hi there @fernandoalugo welcome to the community!

> [@fernandoalugo](#):
>
> What’s the best way to achieve this?. Do we need to change the way we currently login in for testing? or is it possible to bypass this login method?

Perhaps this method could work for your use case? That is, creating a temporary db connection (traditional username/pass) and dummy user for testing purposes.  
[https://community.auth0.com/t/is-it-possible-to-add-a-passwordless-demo-user-for-an-apple-application-review/38667?u=tyf](https://community.auth0.com/t/is-it-possible-to-add-a-passwordless-demo-user-for-an-apple-application-review/38667)

Let us know!

---

<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:** [April 27, 2022, 11:14pm UTC](https://community.auth0.com/t/how-do-i-get-the-one-time-code-for-my-e2e-testing/81544/4 "2022-04-27T23:14:01Z")

</div>

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