Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

Commit

Permalink
fix: redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
suu3 committed Jul 10, 2024
1 parent 533ac1d commit f89c8bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/screens/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ class _MyLoginState extends State<MyLogin> {
});
await supabase.auth.signInWithOtp(
email: _emailController.text.trim(),
emailRedirectTo:
kIsWeb ? null : 'io.supabase.flutterquickstart://login-callback/',
emailRedirectTo: kIsWeb
? 'https://suu3.github.io/flutter-riverpod-demo/'
: 'io.supabase.flutterquickstart://login-callback/',
);
if (mounted) {
context.showSnackBar('Check your email for a login link!');
Expand Down

0 comments on commit f89c8bb

Please sign in to comment.