{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dpf-it-com/json-schema/dpf-it-com-login-response-schema.json",
  "title": "LoginResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dpf-it-com-authentication-api-openapi.yml#/components/schemas/LoginResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string",
          "format": "uuid",
          "description": "User unique identifier"
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "User email address"
        },
        "firstName": {
          "type": "string",
          "description": "User first name"
        },
        "lastName": {
          "type": "string",
          "description": "User last name"
        },
        "token": {
          "type": "string",
          "description": "JWT access token for authentication (24h expiry)"
        },
        "refreshToken": {
          "type": "string",
          "description": "Opaque refresh token (~90-day sliding window). Exchange it at `/auth/refresh` for a\nnew access token once the current one expires — rotates on every use, so store the\nreturned refreshToken and discard the old one each time.\n"
        }
      }
    }
  }
}