Nest Authbeta

GET /auth/verify-session

Lightweight endpoint to verify if the current session is valid. Returns minimal information without fetching full user data.

Verify Session

GET/auth/verify-session

Lightweight endpoint to verify if the current session is valid. Returns minimal information without fetching full user data.

Responses

200
FieldTypeRequiredDescription
validbooleanoptional
Example: true
userIdstringoptional
Example: 123e4567-e89b-12d3-a456-426614174000
expiresAtstringoptional
Example: 2024-01-01T12:00:00.000Z

Example response

{
  "valid": true,
  "userId": "123e4567-e89b-12d3-a456-426614174000",
  "expiresAt": "2024-01-01T12:00:00.000Z"
}

Try it

curl -X GET 'https://api.example.com/auth/verify-session' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

On this page