Closed dhutaryan closed 5 months ago
Hmm, I'm not entirely sure why you are getting SocketException, but could you share your config.toml file around the configuration related to Google sign-in?
Sure
[auth.external.google]
enabled = true
client_id = "env(GOOGLE_CLIENT_ID)"
secret = "env(GOOGLE_CLIENT_SECRET)"
redirect_uri = "http://localhost:54321/auth/v1/callback"
# redirect_uri = "http://127.0.0.1:54321/auth/v1/callback"
# url = ""
@dhutaryan
It seems like you are initializing Supabase with http://127.0.0.1:54321
as the URL, but could you confirm that it's http://127.0.0.1:54321
and not http://localhost:54321
?
@dshukertjr do you mean that site_url = "http://127.0.0.1:3000"
in auth section?
@dhutaryan No, I mean what are you passing to Supabase.initializa()
for the url
parameter? Does the URL you pass match the value you see on the terminal after running supabase start
?
Ah, sorry. Yes, it's http://127.0.0.1:54321
@dhutaryan That's good. Are you able to make any other API requests to the local Supabase instance from your Flutter app?
Also, how are you running your Flutter app? What platform? Is it an emulator or a real device?
No, I tried to get users and have the same error
@dshukertjr from VS code on real device
Okay, using a real device is the cause, and it's not a Supabase issue.
You can read this to learn how to access local host from a connected device. https://stackoverflow.com/questions/51889837/cannot-connect-to-localhost-api-from-android-app
Thank you. I've solved my issue. Now I have the following error Passed nonce and nonce in id_token should either both exist or not
but there is an issue already for that https://github.com/supabase/cli/issues/1847
Describe the bug I deployed supabase locally on my laptop. I got an error when I tried to google sign in. It appears after I select account.
I looked through everything. Tried to change and set up a ton of combinations but didn't find the reason. Please, let me know if you need additional information.
Version (please complete the following information):