Endpoint
Request body
The player’s email address. Must be a valid email format. Used as the unique account identifier.
The player’s password. Minimum 8 characters.
A unique identifier for the player’s device. This value is stored as the player’s
auth_user_id and becomes the sub claim in all issued JWTs.Example request
Response
201 Created
A signed JWT bearer token. Include this in the
Authorization: Bearer header on every authenticated request. Expires in 30 days.A signed JWT refresh token. Use this to obtain a new access token when the current one expires. Expires in 180 days.
Error responses
| HTTP status | Code | Message | Meaning |
|---|---|---|---|
400 BAD_REQUEST | BAD_REQUEST | invalid_payload | The request body failed validation. Check details for field-level errors. |
409 CONFLICT | CONFLICT | email_already_registered | An account with this email already exists. Direct the player to log in instead. |
