Skip to main content

AUTH.UPDATE_ACCOUNT

POST 

To update core account info, ie: email, password username. It requires an OTP to be sent with intent.

Request

Body

    anyOf
    action stringrequired

    Default value: auth.update_account

    The action

    email stringrequired

    The current email address

    otp stringrequired

    The OTP sent to the user

    intent required

    Possible values: [change_email]

    The intent for the update associated to the OTP

    new_email stringrequired

    The new email address

Responses

Auth JWT Token response

Schema
    data object
    id_token string

    The JWT ID Token

    refresh_token string

    The refresh token to be kept private

    token_type string

    The token type, set to be bearer

    token_info object

    Token info

    ttl integer

    The JWT time to live (ttl) from the issued at time (iat)

    exp integer

    The JWT expire time

    iat integer

    The JWT issued at time

    aud string

    The audience

    _userkey string

    The user key

    project_id string

    The Project ID

    user_profile object

    The user profile

    _userkey string

    The user's Key

    email string

    The user's email

    email_verified boolean

    Boolean indicating email is verified

    display_name string

    The full display name

    photo_url string

    The photo URL

    username string

    The username

    aud string

    The 'aud' associated to this authentication

    roles string[]

    Array of roles for this authentication

    auth_types string[]

    Array of auth_types for this authentication

Loading...