Deanonymize an anonymous user
POST /user/deanonymize
POST
/user/deanonymize
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.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Authentication method and credentials to convert anonymous user to regular user
object
signInMethod
required
Which sign-in method to use
string
email
required
A valid email
string format: email
Example
john.smith@nhost.io password
A password of minimum 3 characters
string
Example
Str0ngPassw#ord-94|% connection
Deprecated, will be ignored
string
options
object
allowedRoles
Array<string>
Example
[ "me", "user"] defaultRole
string
Example
user displayName
string
Example
John Smith locale
A two or three characters locale
string
Example
en metadata
object
key
additional properties
any
Example
{ "firstName": "John", "lastName": "Smith"} redirectTo
string format: uri
Example
https://my-app.com/catch-redirectionResponses
Section titled “ Responses ”User deanonymized successfully
string
default
Section titled “default ”An error occurred while processing the request
Standardized error response
object
status
required
HTTP status error code
integer
Example
400 message
required
Human-friendly error message
string
Example
Invalid email format error
required
Error code identifying the specific application error
string