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。

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

确定

400

错误的请求

401

未授权

404

未找到

422

无法处理的实体

429

请求过多

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