{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/nthu/main/json-schema/nthu-token-response-schema.json",
  "title": "TokenResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nthu-oauth-api-openapi.yml#/components/schemas/TokenResponse",
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string"
    },
    "expires_in": {
      "type": "integer",
      "description": "Lifetime in seconds."
    },
    "token_type": {
      "type": "string",
      "enum": [
        "Bearer"
      ]
    },
    "scope": {
      "type": "string",
      "description": "Space-separated granted scopes."
    },
    "refresh_token": {
      "type": "string"
    }
  }
}