mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-06 07:54:00 +01:00
Riders without a Google, Apple, GitHub or Facebook account can now sign in with their email address: Supabase mails a six-digit code and EmailLoginForm redeems it via verifyOTP. Deliberately code-only rather than a clickable magic link — a link has to travel back through bikecontrol://, which is unreliable on Windows and Linux, and corporate mail scanners routinely open (and thereby burn) one-shot links before the rider ever sees the message. A typed code behaves the same on every platform, including web. The Supabase side is the send-auth-email hook in the website repo, which renders the branded BikeControl mail through Resend. Also folds the pop/onBack block that was duplicated across all four OAuth handlers into _afterSignIn(), which adds the mounted guard those calls were missing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>