Closed Akash4097 closed 5 months ago
Could you outline what steps you took to setup GitHub login on Supabase?
Could you outline what steps you took to setup GitHub login on Supabase?
okay:
await supabase.auth.signInWithOAuth(
Provider.github,
redirectTo: kIsWeb ? null : 'io.supabase.flutter://reset-callback/',
);
in order to check whether authentication work or not but it failed to give the exception as mentioned in my previous post.
Can you print the url
property of the getOAuthSignInUrl()
method like this and paste exactly what you see in the console?
final res = await getOAuthSignInUrl(
provider: OAuthProvider.github,
redirectTo: kIsWeb ? null : 'io.supabase.flutter://reset-callback/',
);
print(res.url);
Can you print the
url
property of thegetOAuthSignInUrl()
method like this and paste exactly what you see in the console?final res = await getOAuthSignInUrl( provider: OAuthProvider.github, redirectTo: kIsWeb ? null : 'io.supabase.flutter://reset-callback/', ); print(res.url);
ya i got the following resutl:
INFO: 2024-01-31 14:25:42.739389:=> Github OAuth:URL ""/auth/v1/authorize?provider=github&redirect_to=io.supabase.flutter%3A%2F%2Freset-callback%2F&flow_type=pkce&code_challenge=t9FgmhU_kpeUzjWQXNEkoc7eWNwSkBWnXgns2Ncchzc&code_challenge_method=s256
Okay, double-check how you are initializing Supabase. You most likely are passing ""
as the Supabase URL.
Okay, double-check how you are initializing Supabase. You most likely are passing
""
as the Supabase URL.
ya you are right.... actually project url is not properly return from .env file...
just one more question: as i don't have production level url because my app is in developing phase right now....so what url should i give here(see in screenshot) so that it won't redirect to unknown page...
@Akash4097 Glad it was solved.
just one more question: as i don't have production level url because my app is in developing phase right now....so what url should i give here(see in screenshot) so that it won't redirect to unknown page...
You can ask GitHub what to enter there in your circumstance.
Describe the bug
i am trying to integrating github oauth for authentication in my app but when i use the following code snippet(given in docs):
then i got the following exception:
please help me what should i do here or am i miss something?