{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shiro/refs/heads/main/json-schema/apache-shiro-token-response-schema.json",
  "title": "TokenResponse",
  "description": "JWT or token-based authentication response",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "Authentication token"
    },
    "tokenType": {
      "type": "string",
      "description": "Token type (e.g. Bearer)"
    },
    "expiresIn": {
      "type": "integer",
      "description": "Token expiry in seconds"
    },
    "principal": {
      "type": "string",
      "description": "Authenticated principal"
    }
  }
}