Auth

Get current user info

Errors

Returns an error if user is not authenticated or serialization fails.

get/api/auth/me

Response

Current user information

authProvider'google' | 'email' | 'both' required

Authentication provider types supported by the system

avatarUrlstring nullable

URL to user's avatar image

createdAtstring date-time nullable

User account creation timestamp

displayNamestring nullable

User's display name

emailstring required

User's registered email address

emailVerifiedboolean required

Whether the user's email has been verified

idstring uuid required

User's unique identifier

lastLoginstring date-time nullable

Timestamp of user's last login

Example response

{
  "authProvider": "email",
  "avatarUrl": "https://example.com/avatar.jpg",
  "createdAt": "2023-01-01T00:00:00",
  "displayName": "John Doe",
  "email": "user@example.com",
  "emailVerified": true,
  "id": "a7b8c9d0-1234-5678-a123-567890123456",
  "lastLogin": "2023-01-02T12:00:00"
}

Changes