Skip to main content
POST
/
auth
/
update-user
Update User Email
curl --request POST \
  --url http://localhost:3000/api/auth/update-user \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]"
}
'
{
  "status": "<string>",
  "message": "<string>",
  "emailUpdated": true,
  "customToken": "<string>"
}

Body

application/json
email
string<email>

The new email address

Response

User email updated successfully

status
string
message
string
emailUpdated
boolean
customToken
string

New authentication token if email was updated