The six Supabase Auth email types
Supabase can send auth email events for:- email confirmation
- password reset
- magic link
- invite
- email change
- reauthentication
What Dreamlit handles
Dreamlit handles the email side:- receives Supabase Auth email hook events
- creates workflows for each auth email type
- generates branded templates
- sends the email
- exposes Supabase auth variables like
ConfirmationURL,Token,TokenHash,SiteURL,RedirectTo, andEmail
What your app still handles
Your app and Supabase project still own the auth flow:- your app calls the right Supabase Auth API
- Supabase allows the redirect URL
- your web callback route or native deep link works
- PKCE flows complete the code exchange in the same browser or device
Magic link or six-digit code?
Use a magic link when the user can open the email on the same device and your app can handle the callback URL. Use a six-digit code when the user may open email on another device, or when you want a simpler native-app sign-in flow.Best first setup
For a production Supabase app, set up:- branded confirmation email
- branded password reset email
- magic link or code-based sign-in
- correct Supabase URL configuration
- one test for each auth path from your real app UI
Follow the setup guide
Configure Supabase Auth emails with Dreamlit.