authentication
Deanonymize an anonymous user
Convert an anonymous user to a regular user by adding email and optionally password credentials. A confirmation email will be sent if the server is configured to do so.
post/user/deanonymize
Request body
Example request
{
"email": "john.smith@nhost.io",
"password": "Str0ngPassw#ord-94|%",
"options": {
"allowedRoles": [
"me",
"user"
],
"defaultRole": "user",
"displayName": "John Smith",
"locale": "en",
"metadata": {
"firstName": "John",
"lastName": "Smith"
},
"redirectTo": "https://my-app.com/catch-redirection"
}
}Response
User deanonymized successfully
'OK' required