Summary
This is an intermediate transit screen shown while the app initiates the Apple OAuth flow via Supabase. A loading spinner and "Redirecting to Apple…" text are displayed. If initiation fails, an error message and a "Back to login" button appear. On success the system auth redirects through Apple back to the app automatically.
Page Functionalities
- Loading state — CircularProgressIndicator and "Redirecting to Apple…" text.
- "Back to login" TextButton (loading state) — Cancel and return to the originating route.
- Error state — Error icon plus "Sign in with Apple failed. Please try again." message.
- "Back to login" ElevatedButton (error state) — Returns to the originating route; also triggered automatically after 3 seconds.
Scenarios
Successful Apple sign-in initiation
- Click "Sign in with Apple" on the Login or Register screen.
- This screen appears briefly showing a spinner.
- The system auth UI (or browser) redirects to Apple's sign-in flow.
- After authorising, the app session is established and you are forwarded to the home screen.
Sign-in initiation fails
- An error message is displayed.
- After 3 seconds the app navigates back automatically, or click Back to login.