Friend hit a 500 on /api/register/complete because the Postgres unique constraint fired after the WebAuthn ceremony — they'd already burned a passkey creation by the time the server refused. Pre-check the username in /api/register/start so the join page shows "Username is already taken" before the browser prompts. Also catch the 23505 duplicate-key error in /api/register/complete as a race-condition safety net. |
||
|---|---|---|
| .. | ||
| encryptid | ||
| lib | ||