Can't get session and user after success call supabase.auth.signInWithOAuth(Provider.******)
r-serega opened this issue · 4 comments
Can't get session and user after success call supabase.auth.signInWithOAuth(Provider.******)
After signing into the app with supabase.auth.signInWithOAuth(Provider.******);
it is clear that everything worked correctly, the user's photo appears in the window.
But I can't get session and user: Supabase.instance.client.auth.currentSession == null
and Supabase.instance.client.auth.currentUser == null.
In the supabase console, the new user is not added to the user list.
Prompt the decision of reception of session and the user after OAUTH authorization.
I found one piece of advice in this post . Where is a link to a working application that solves my problem.
Supabase.instance.client.auth.signInWithProvider( supabase.Provider.github, options: supabase.AuthOptions(redirectTo: authRedirectUri), );
I will investigate, maybe this will solve the problem