authentication
Deanonymize an anonymous user with SMS OTP
Convert an anonymous user to a regular user by adding a phone number. A one-time password is sent to the phone number; the user completes verification by calling /signin/passwordless/sms/otp with the OTP, which marks the phone number as verified and returns a session.
post/user/deanonymize/sms
Request body
Example request
{
"phoneNumber": "+123456789",
"options": {
"allowedRoles": [
"me",
"user"
],
"defaultRole": "user",
"displayName": "John Smith",
"locale": "en",
"metadata": {
"firstName": "John",
"lastName": "Smith"
},
"redirectTo": "https://my-app.com/catch-redirection"
}
}Response
OTP sent to the phone number and the deanonymization change is pending verification. The user remains anonymous until the OTP is verified
'OK' required