POST /auth/register, so your token-handling code works for both flows without modification.
Endpoint
Request body
The player’s registered email address.
The player’s password.
Example request
Response
200 OK
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. |
401 UNAUTHORIZED | UNAUTHORIZED | invalid_credentials | No account exists for this email, or the password is incorrect. |
