SteveSteve

Complete an invitation and set the password

Hashes the provided password, stores it in the password auth account, and consumes the invitation token.

POST /api/invitation/complete — internal browser-facing endpoint, not part of the external API.

Request body

{
  "token": "invite_abc123",
  "password": "strong-password-123"
}

Password minimum length: 8 characters.

Response (200)

Success:

{
  "success": true,
  "userType": "customer"
}

Failure (400):

{
  "success": false,
  "error": "Password must be at least 8 characters"
}

Source

  • Handler: convex/http.ts
  • Logic: convex/invitationActions.tscompleteInvitationWithPassword

On this page