Skip to main content
The token will no longer be valid for API access.

Prerequisites

  • Valid JWT token obtained from wallet login
  • Active authenticated session

Request

curl -X POST "https://api.g2cplatform.com/v2/auth/wallet/logout" \
  -H "Authorization: Bearer your-jwt-token"

Response

No content - logout successful

Response Fields

The logout endpoint returns a 204 No Content status code on successful logout with no response body.

Error Responses

Status CodeDescription
401Unauthorized - invalid or missing JWT token
500Internal server error

Usage Notes

  • After successful logout, the JWT token becomes invalid and cannot be used for future requests
  • The client should clear the stored token after receiving a successful logout response
  • A new login is required to obtain a fresh JWT token
  • Logout is idempotent - calling it multiple times with the same token will not cause errors