# Parameters for Embedded Authenticate an Email user

**URL:** <https://community.auth0.com/t/parameters-for-embedded-authenticate-an-email-user/126789>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [February 7, 2024, 8:42pm UTC](https://community.auth0.com/t/parameters-for-embedded-authenticate-an-email-user/126789 "2024-02-07T20:42:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio.Filho](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Sergio.Filho](https://community.auth0.com/u/Sergio.Filho)\
**Post date:** [February 7, 2024, 8:42pm UTC](https://community.auth0.com/t/parameters-for-embedded-authenticate-an-email-user/126789/1 "2024-02-07T20:42:27Z")

</div>

I’m implementing a embedded passwordless login using e-mail single code verification, following this documentation: [Embedded Passwordless Login in Regular Web Applications](https://auth0.com/docs/authenticate/passwordless/implement-login/embedded-login/webapps)

However, at step " _Authenticate an Email user_", the documentation is not clear. Where should I enter the email? And the code that was sent to the email? Where should I enter it?  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/8/a877df10d45d5fb9c78f9d0401e988ab18f6e94c.png)

---

<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:** [February 8, 2024, 12:59am UTC](https://community.auth0.com/t/parameters-for-embedded-authenticate-an-email-user/126789/3 "2024-02-08T00:59:34Z")

</div>

Hi there @Sergio.Filho welcome to the community!

> [@Sergio.Filho](#):
>
> However, at step " _Authenticate an Email user_", the documentation is not clear. Where should I enter the email? And the code that was sent to the email? Where should I enter it?

Good catch! This just looks to be a typo in the docs to me - You should just be able to pass the `email` as the `username`.

---

<div class="post-metadata">

**Author:** ![Sergio.Filho](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Sergio.Filho](https://community.auth0.com/u/Sergio.Filho)\
**Post date:** [February 8, 2024, 11:41am UTC](https://community.auth0.com/t/parameters-for-embedded-authenticate-an-email-user/126789/4 "2024-02-08T11:41:16Z")

</div>

Thanks for the quick reply.

Just one last question: I received a **code verification via email**. Where should I place it? It’s also not clear.

I’d guess it shold have a json param named “code” or something like that.

---

<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:** [February 8, 2024, 5:04pm UTC](https://community.auth0.com/t/parameters-for-embedded-authenticate-an-email-user/126789/5 "2024-02-08T17:04:08Z")

</div>

No problem, happy to help!

> [@Sergio.Filho](#):
>
> I’d guess it shold have a json param named “code” or something like that.

The code received via email should be included in the subsequent request as the `otp` param - cURL for example:

```auto
curl --request POST \
  --url 'https://dev-yxoacp77.us.auth0.com/oauth/token' \
  --header 'content-type: application/json' \
  --data '{"grant_type": "http://auth0.com/oauth/grant-type/passwordless/otp", "client_id": "XXX", "client_secret": "XXX", "audience": "https://test-api-endpoint", "username": "test@gmail.com", "otp": "{your_code_here}", "realm": "email", "scope": "openid profile email"}'

```

---

<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:** [February 26, 2024, 11:05pm UTC](https://community.auth0.com/t/parameters-for-embedded-authenticate-an-email-user/126789/6 "2024-02-26T23:05:08Z")

</div>

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