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>

Login project ID from Publisher Account.

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

OK

400

Pedido incorreto

401

Desautorizado

404

Não encontrado

422

Entidade não processável

429

Pedidos demais

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