mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-04 20:52:23 +01:00
Linking an email to the anonymous support-chat session fails with GoTrue email_exists (422) when the address belongs to another account. The card showed its generic "try again" error, so riders kept retrying. FeedbackSubmissionException now carries the auth error code, and beginEmailLink throws EmailAlreadyInUseException for email_exists / user_already_exists. The card shows a specific message: the address already has an account, sign in under Pro > Account (the conversation won't move over), or use a different email. No in-card sign-in: support chats are one per user_id and nothing moves a chat between users, so switching accounts would leave the current chat behind. The card tests' error listener now collects recorded errors so the email_exists test can assert the failure is still recorded. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>