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

OK

400

無効なリクエスト

401

未認証

404

見つかりません

422

処理不可能なエンティティー

429

リクエストの回数が多すぎます

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