POST
/
user
/
deanonymize
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>"

Authorizations

Authorization
string
headerrequired

JSON Web Token to authorize requests.

Body

application/json
connection
string
email
string
required

A valid email

options
object
password
string
signInMethod
enum<string>
required
Available options:
email-password,
passwordless

Response

200 - application/json

The response is of type string.