GET
/
sessions
/
validate
curl --request GET \
  --url https://{tenant_id}.hanko.io/sessions/validate
{
  "is_valid": true,
  "expiration_time": "2023-11-07T05:31:56Z",
  "user_id": "<string>"
}

Authorizations

hanko
string
cookie
required

Response

200 - application/json
Session validation response
is_valid
boolean

Indicates whether the session is valid or not

expiration_time
string

Date-time indicating the expiration of the session

user_id
string

The ID of the user the session is associated with