I'm trying to set up auth in supabase
Following the tutorial, I try adding domain 'io.supabase.flutterquickstart://login-callback/'
but nothing happens. Maybe this is a bug in the software, not sure
I'm trying to set up auth in supabase
Following the tutorial, I try adding domain 'io.supabase.flutterquickstart://login-callback/'
but nothing happens. Maybe this is a bug in the software, not sure
I already commented on the Github issue but for reference here as well:
Maybe a hint because I tripped over this twice now in 3 days. Make sure you have a slash at the end of the URL in the additional Redirect URLs and check the API call sent to supabase to compare. My problem was that the first localhost address works, but the second doesn't because of the missing slash. If it doesn't find the exact URL, it defaults to the "Site URL" address:
http://**127.0.0.1:3000/*/*
Jan 25, 2023 at 18:14
**
(double asterisk to include everything after. Check supabase.com/docs/guides/auth/concepts/redirect-urls
Don't change redirect URLs instead, change site URL with your production URL. You can go to authentication > under configuration - URL configuration > change the site URL to production URL and it will work for google auth. I was facing issue in google auth after successful login. And this works for me...
I had the same issue (followed the same tutorial), but i just CTRL+C CTRL+V everything expect the io.supabase.* and created a custom one.
But there is an important Line on the login_page.dart
file.
await supabase.auth.signInWithOtp(
email: _emailController.text,
emailRedirectTo: kIsWeb ? null : 'io.supabase.flutterquickstart://login-callback/',
);
So if youre facing the same issue, i recommend reading through the code and changing the emailRedirectTo
to your own value if you changed it.
I havent figured it out for solid 30min because normal Deep-Linking works just fine, but the redirect stuff isnt setup.