AUTH.UPDATE_PROFILE
POST
To update user profile, which includes display_name, phone_number, photo_url and metadata
Request
- application/json
Body
Default value: auth.update_profile
The action
The JWT ID Token
The current refresh token
data object
A new display name
The new phone number
The new photo url
Object of metadata
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"
]
}
}
}