auth

Get current user

Returns the current authenticated user directly

get/api/custom-auth/me

Request

  • Base URL: https://localhost:8080
  • URL: https://localhost:8080/api/custom-auth/me
  • Auth: none declared. Required headers: authorization

Headers

authorizationstring required
Authorizationstring

Bearer token (optional if using cookie)

Response

User retrieved successfully

idstring required

User ID

namestring required

User full name

emailstring required

User email address

emailVerifiedboolean required

Whether email is verified

firstNamestring

User first name

lastNamestring

User last name

createdAtstring date-time required

Account creation date

updatedAtstring date-time required

Last update date

Example response

{
  "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"
}

Changes

No recorded changes to this operation across all 1 revision of this API.