POST
/v1/auth/otp/verify/email
Verify the validity of an OTP code sent via email
Verify that the OTP code entered by the end user matches the OTP code that was sent. The Verify OTP code endpoint completes the OTP via email flow for:
The response object includes the session JWT sessionJwt
and refresh JWT refreshJwt
when the endpoint completes successfully, and the end user will be signed in. For an update email flow, the new email address will replace the original email address.
See Also
- See The User Object for further details on how to identify users and their contact information such as email address and phone number.
Endpoint Authentication
Use authorization bearer header with the following format:
Authorization: Bearer \<Project ID\>
Authorization
Authorization
RequiredBearer <token>
In: header
Request Body
loginId
string
code
string
Status code | Description |
---|---|
200 | OK |
Was this helpful?