Auth

Update user information

Errors

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

put/api/auth/me

Request body

avatar_urlstring nullable

Updated avatar URL for the user

descriptionstring nullable

Updated description for the user

display_namestring nullable

Updated display name for the user

Example request

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

Response

User information updated successfully

messagestring required

Update confirmation message

Example response

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

Changes