Authenticates a user by a particular custom ID. If the user does not exist, they are created.
projectId | string <uuid> Login project ID from Publisher Account. If you do not specify it, shadow Login will be used for the specified Shadow Login ID you do not need to pass to this call. |
payload | string Your custom data. The value of the parameter will be returned in the |
publisher_project_id | integer Project ID from Publisher Account which you make a request for. If you specify it, but do not specify |
with_logout | string Default: "0" Shows whether to deactivate the existing user JWT values and activate the one generated by this call. Can have the following values:
|
OK
Bad Request
Unauthorized
Not Found
Unprocessable Entity
Too Many Requests
{- "attributes": [
- {
- "attr_type": "server",
- "key": "company",
- "permission": "private",
- "value": "facebook-promo"
}, - {
- "attr_type": "server",
- "key": "custom-id",
- "permission": "private",
- "value": 48582
}
], - "server_custom_id": "1234567890asdfghjkl",
- "social_profile": {
- "platform": "xbox",
- "user_id": 4352354
}, - "user_profile": {
- "nickname": "John_Doe_1337"
}
}
{- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IiIsImV4cCI6MTY1MzEyMzk5MCwiZ3JvdXBzIjpbXSwiaWF0IjoxNjUzMDM3NTkwLCJpc3MiOiJodHRwczovL2xvZ2luLnhzb2xsYS5jb20iLCJwdWJsaXNoZXJfaWQiOjMsInNlcnZlcl9jdXN0b21faWQiOiJteS1jdXN0b20taWQtbm90LWxpbmtlZCIsInN1YiI6IjI0MTBkNmMzLWFhZDEtNGY0OS04ODNlLTQ2Y2FkM2ZiMmJjMiIsInR5cGUiOiJzZXJ2ZXJfY3VzdG9tX2lkIiwidXNlcm5hbWUiOm51bGwsInhzb2xsYV9sb2dpbl9hY2Nlc3Nfa2V5IjoiSFhzTVZSWmRtd2tuZXNZMG1pNEpUMVhJUm43bVM4ZU5oc1FxaTU4bmtCayIsInhzb2xsYV9sb2dpbl9wcm9qZWN0X2lkIjoiMTM3NTkyM2ItODdmMy00YTIwLWFjMmItZDBhMjg3MzBlNDIwIn0.D8dFMN5Bmgnpejq1EhZUZQP_D5iFhpO_RXnVyE03qUI"
}