I don't know if who posted before this topic, this forum prevent me to find it searching.
Tell me if it useful or not.
Let's say if you want users to Sign up with email, and auto send verify email, follow this step:
(Supabase side)
Turn on "Confirm email" toggle in Authentication > Providers > Email
Set "Email Templates" according to your preferred language
Recommend to use Custom SMTP like SendGrid or Resend.
Turn on "Enable Custom SMTP" in Settings > Authentication > SMTP Settings,
And set Sender details, SMTP Provider Settings.
(FlutterFlow side)
Create a custom action, and Invoke when users sign up.
Users click URL in the email sent from Supabase, and sign in to app.
Add auto creating user profiles function on sign up on Supabase if you like(not describe here, not limited to Email sign up).
Future<bool?> signUpWithEmail(
String email,
String password,
) async {
try {
final supabase = SupaFlow.client;
final AuthResponse res = await supabase.auth.signUp(
email: email,
password: password,
);
final Session? session = res.session;
debugPrint('Signed up');
debugPrint('Session:$session');
return true;
} on AuthException catch (e) {
debugPrint('Auth failed: $e');
} catch (e) {
debugPrint('Unknown Exception: $e');
}
}