POST
/v1/auth/otp/verify/sms
Verify the validity of an OTP code via SMS
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 SMS flow for:
The response object includes the session JWT sessionJwt
and refresh JWT refreshJwt
when it completes successfully, and the end user will be signed in. For an update phone number flow, the new phone number will replace the original phone number.
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?