You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this point I still dont have a valid session on the client, nor does calling getSession() bring any results.
There is the parameter: detectSessionInUrl which could mean that now when I init the client for the first time that it should look at the url and complete the auth but that is not the case.
I also tried
useAsync(async() => {
const res = await auth.exchangeCodeForSession(query.code as string)
console.log(res, "res")
}, [query])
on the page i get redirected to but then I just get:
AuthApiError: invalid request: both auth code and code verifier should be non-empty
I am a little bit clueless how to finish the auth process. It should be possible to do this without a server, right?
The text was updated successfully, but these errors were encountered:
@BjoernRave did you get this resolved? I don't know much about self-hosting, but I'm thinking this GOTRUE_EXTERNAL_GOOGLE_REDIRECT_URI=http://localhost:3000 needs to be a location to your docker container, not your app's location.
okay, i will try to recheck that, but i already tried so much and am a little clueless. tbh currently looking at: https://www.better-auth.com/ and whats happening over there. Would still be happy to get gotrue running
I want to implement "login with google".
I am self hosting gotrue / supabase/auth as a docker container. In my config I have:
On the frontend I init my auth like this:
Then I have a button, which I can click and it executes this code:
then I get redirected to google, I can login and get sent back to http://localhost:3000 , but now the url looks like:
This is the decoded state JWT:
At this point I still dont have a valid session on the client, nor does calling getSession() bring any results.
There is the parameter:
detectSessionInUrl
which could mean that now when I init the client for the first time that it should look at the url and complete the auth but that is not the case.I also tried
on the page i get redirected to but then I just get:
I am a little bit clueless how to finish the auth process. It should be possible to do this without a server, right?
The text was updated successfully, but these errors were encountered: