post

/users/login/server_custom_id

Authenticates user by a particular custom ID. If user does not exist, they are created.

Method available with the server JWT in the X-SERVER-AUTHORIZATION header only. To get the server token, use the Generate User JWT method with grant_type=client_credentials.

Authorization

apiKey - X-SERVER-AUTHORIZATION

Request Parameters

3 Query Parameters

Request Body

Schema
object

User’s details.

server_custom_id
string

Custom ID is generated by your server (it is not Xsolla Login User ID). It should be in secret key.

2 validations + required
social_profile
object

Social profile which is needed to be linked to the user.

Responses

OK

Schema
object
token
string

The Xsolla Login user JWT.

required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
X-SERVER-AUTHORIZATION