generated from toph/supa-svelte
Registration has a non-atomic failure mode — user lockout risk #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
src/lib/remote/auth.remote.ts:99-109
Creates user with random UUID password, then calls requestOTP.
If OTP delivery fails, the account exists but user has no way in.
Retrying register fails with "email already exists.
Fix: delete the user if OTP fails, or catch "already exists" and fall through to requestOTP