cURL
curl --request POST \ --url https://local.auth.nhost.run/v1/user/deanonymize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connection": "email", "email": "john.smith@nhost.io", "options": { "allowedRoles": [ "me", "user" ], "defaultRole": "user", "displayName": "John Smith", "locale": "en", "metadata": { "firstName": "John", "lastName": "Smith" }, "redirectTo": "https://my-app.com/catch-redirection" }, "password": "Str0ngPassw#ord-94|%", "signInMethod": "email-password" }'
"<string>"
Deanonymize an anonymous user with email and optionally password
JSON Web Token to authorize requests.
The body is of type object.
object
Success
The response is of type string.
string