AUTH.UPDATE_ACCOUNT
POST
To update core account info, ie: email, password username. It requires an OTP to be sent with intent.
Request
- application/json
Body
- CHANGE_EMAIL_SCHEMA
- CHANGE_PASSWORD_SCHEMA
- CHANGE_USERNAME_SCHEMA
Default value: auth.update_account
The action
The current email address
The OTP sent to the user
Possible values: [change_email
]
The intent for the update associated to the OTP
The new email address
Default value: auth.update_account
The action
The current email address
The OTP sent to the user
Possible values: [change_password
]
The intent for the update associated to the OTP
The new valid password
Default value: auth.update_account
The action
The current email address
The OTP sent to the user
Possible values: [change_username
]
The intent for the update associated to the OTP
The new username
Responses
- 200
Auth JWT Token response
- application/json
- Schema
- Example (from schema)
Schema
data object
The JWT ID Token
The refresh token to be kept private
The token type, set to be bearer
token_info object
Token info
The JWT time to live (ttl) from the issued at time (iat)
The JWT expire time
The JWT issued at time
The audience
The user key
The Project ID
user_profile object
The user profile
The user's Key
The user's email
Boolean indicating email is verified
The full display name
The photo URL
The username
The 'aud' associated to this authentication
Array of roles for this authentication
Array of auth_types for this authentication
{
"data": {
"id_token": "string",
"refresh_token": "string",
"token_type": "string",
"token_info": {
"ttl": 0,
"exp": 0,
"iat": 0,
"aud": "string",
"_userkey": "string",
"project_id": "string"
},
"user_profile": {
"_userkey": "string",
"email": "string",
"email_verified": true,
"display_name": "string",
"photo_url": "string",
"username": "string",
"aud": "string",
"roles": [
"string"
],
"auth_types": [
"string"
]
}
}
}