Skip to main content

Anonymous Login

POST 

/auth/v1/signin/anonymously

For the same device ID, at most one anonymous user can be registered, and an access_token for that anonymous user is generated.

Request

Query Parameters

    client_id string

    The client ID corresponding to the application, which can be obtained from Cloud Development Platform --> Authentication --> Development Settings. Defaults to the environment ID and can be omitted.

Header Parameters

    x-device-id stringrequired

    Required for anonymous login. The device ID of the currently logged-in device. The client should randomly generate and cache this value. This parameter is used to calculate the user ID during anonymous login. If not cached, the anonymous user will log in again and the user ID will change.

Body

    object

Responses

A successful response.

Response Headers
    Schema
      token_type Access Token Type (string)

      Always returns Bearer

      access_token User's Access Token (string)

      Token used to access the Cloud Development HTTP API, with a maximum length of 4096 characters

      refresh_token User's Refresh Token (string)

      When the access_token expires, it can be refreshed using the refresh_token to obtain a new access_token. The default expiration time is 31 days. Maximum length is 128 characters

      expires_in int32

      Expiration time of the access_token in seconds

      scope Authorization Scope (string)
      sub User's Unique ID (string)
      groups string[]
    Loading...