Parameters for Embedded Authenticate an Email user

I’m implementing a embedded passwordless login using e-mail single code verification, following this documentation: Embedded Passwordless Login in Regular Web Applications

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

Hi there @Sergio.Filho welcome to the community!

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.

1 Like

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.

1 Like

No problem, happy to help!

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

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"}'

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