auth
Get current session
Retrieves the current user session from token in Authorization header or cookie
get/api/custom-auth/session
Request
- Base URL: https://localhost:8080
- URL: https://localhost:8080/api/custom-auth/session
- Auth: none declared. Required headers: authorization
Headers
authorizationstring required
Authorizationstring
Bearer token (optional if using cookie)
Response
Session retrieved successfully
Example response
{
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "John Doe",
"email": "john.doe@example.com",
"emailVerified": true,
"firstName": "John",
"lastName": "Doe",
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z"
},
"expiresAt": "2026-09-04T07:23:04.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.