Xsolla-logo

Validate Server JWTClient-side

post/server/token/validate

Validates a server JWT. Checks the following criteria:

  • the lifetime of the token
  • existence of the Login project
  • presence of an authentic signature from the login.xsolla.com server
  • value of the request_type field: gateway_token
Request
query Parameters
projectId
required
string <uuid>

ID del proyecto de Login procedente de Cuenta del editor.

Request Body schema: application/json
token
required
string

The server token that is sent by the Xsolla Login server to your server in response to the authentication, user registration, or password reset request when using a custom data storage.

Responses
204

ACEPTAR

400

Bad Request (Solicitud errónea)

401

Unauthorized (No autorizado)

404

Not Found (No encontrado)

422

Unprocessable Entity (Entidad no procesable)

429

Too Many Requests (Demasiadas solicitudes)

Request samples
application/json
{
  • "token": "Server token"
}
Response samples
{
  • "error": {
    }
}