Hanko · Schema
Hanko Session
A Hanko session cookie/token issued after successful authentication.
AuthenticationPasskeysWebAuthnFIDO2IdentityOAuthSAMLPasswordlessOpen Source
Properties
| Name | Type | Description |
|---|---|---|
| id | string | The session ID. |
| user_id | string | The ID of the authenticated user. |
| user_agent | string | The User-Agent header from the session creation request. |
| ip_address | string | IP address from which the session was created. |
| created_at | string | |
| updated_at | string | |
| last_used | string | |
| expires_at | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/hanko/main/json-schema/hanko-session-schema.json",
"title": "Hanko Session",
"description": "A Hanko session cookie/token issued after successful authentication.",
"type": "object",
"properties": {
"id": {
"description": "The session ID.",
"type": "string",
"format": "uuid"
},
"user_id": {
"description": "The ID of the authenticated user.",
"type": "string",
"format": "uuid"
},
"user_agent": {
"description": "The User-Agent header from the session creation request.",
"type": "string"
},
"ip_address": {
"description": "IP address from which the session was created.",
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"last_used": {
"type": "string",
"format": "date-time"
},
"expires_at": {
"type": "string",
"format": "date-time"
}
},
"required": ["id", "user_id", "created_at", "updated_at", "last_used"]
}