Users

Authenticate User

Changed on

Authenticate a user using a one-time token. Game Hub generates and sends this token to the game client to process the user's authentication flow with the game server.

The token is valid for a single use and expires after a short period.

post/v1/users/authenticate

Request

  • Base URL
    https://api.aghanim.com/s2s
  • URL
    https://api.aghanim.com/s2s/v1/users/authenticate
  • Auth
    HTTP bearer

Request body

tokenstring required

The token to authenticate the user.

Response

Successful Response

idstring required

The unique identifier of the user.

namestring

The name of the user.

avatar_urlstring

The avatar URL of the user.

player_idstring

The unique player ID of the user. If the user is not linked to a player, this field will be null.

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status