Auth

Update user information

Errors

Returns an error if database operations fail or user validation fails.

put/api/auth/me

Request body

avatarUrlstring nullable

Updated avatar URL for the user

descriptionstring nullable

Updated description for the user

displayNamestring nullable

Updated display name for the user

Example request

{
  "avatarUrl": "https://example.com/new-avatar.jpg",
  "description": "A brief description about myself",
  "displayName": "New Display Name"
}

Response

User information updated successfully

messagestring required

Update confirmation message

Example response

{
  "message": "User information updated successfully",
  "user": {
    "authProvider": "email",
    "displayName": "New Display Name",
    "email": "user@example.com",
    "emailVerified": true,
    "id": "d290f1ee-6c54-4b01-90e6-d701748f0851"
  }
}

Changes