# Get the OTP using passwordless multiple times with same email domain

**URL:** <https://community.auth0.com/t/get-the-otp-using-passwordless-multiple-times-with-same-email-domain/82308>\
**Category:** Get Help\
**Tags:** passwordless-email, authentication-api, passwordless, login\
**Created:** [April 25, 2022, 9:03am UTC](https://community.auth0.com/t/get-the-otp-using-passwordless-multiple-times-with-same-email-domain/82308 "2022-04-25T09:03:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![said.zakriti](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/said.zakriti/32/33507_2.png) [@said.zakriti](https://community.auth0.com/u/said.zakriti)\
**Post date:** [April 25, 2022, 9:03am UTC](https://community.auth0.com/t/get-the-otp-using-passwordless-multiple-times-with-same-email-domain/82308/1 "2022-04-25T09:03:32Z")

</div>

Hello Community,

I am using /passwordless/start endpoint to get the OTP that I will be using in /oauth/token to get the bearer token.

When I use an email with domain that is never used before I get the OTP and then the token using the OTP but when I use an email with a domain that is already used before I get this error : “Company already registered”.

Here is a screen shot of the error.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/7/b/7bce0f880ab39331cd04c5d003fad0403aefdda5.png)

Thank you !

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [April 25, 2022, 8:19pm UTC](https://community.auth0.com/t/get-the-otp-using-passwordless-multiple-times-with-same-email-domain/82308/4 "2022-04-25T20:19:48Z")

</div>

Hi @said.zakriti ,

Welcome to the Auth0 Community!

This is the first time I saw this error. I checked your tenant and noticed that you are using Machine-to-Machine application. There are a couple of things I suggest you try and see if this error is repeatable.

1. as per [this](https://auth0.com/docs/api/authentication#passwordless) article, client\_secret is required for Regular Web Application. Could you please remove client\_secrete and give it a try?

2. on the Auth0 Dashboard, Passwordless → Email, click on “Try” and enter an email with a domain already used, check under Monitoring-\>Logs and see if the same error repeated.

I also noticed that you have opened a Support ticket with us for the same query. Our DSE will reach out to you to help with this error further. Once the ticket is resolved, I will add the solution in this topic. Thank you!

---

<div class="post-metadata">

**Author:** ![said.zakriti](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/said.zakriti/32/33507_2.png) [@said.zakriti](https://community.auth0.com/u/said.zakriti)\
**Post date:** [April 26, 2022, 8:10am UTC](https://community.auth0.com/t/get-the-otp-using-passwordless-multiple-times-with-same-email-domain/82308/5 "2022-04-26T08:10:51Z")

</div>

Hi @lihua.zhang

Thank you so much for your response, After debugging we found that the error is coming from a custom hook in our application.

Best regards.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [April 26, 2022, 3:47pm UTC](https://community.auth0.com/t/get-the-otp-using-passwordless-multiple-times-with-same-email-domain/82308/6 "2022-04-26T15:47:10Z")

</div>

Thank you for the updates! Glad to know that you have resolved this issue 👍

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2022, 10:51am UTC](https://community.auth0.com/t/get-the-otp-using-passwordless-multiple-times-with-same-email-domain/82308/7 "2022-12-22T10:51:51Z")

</div>


