Google oauth redirect is broken
Whatever i do, whatever link i give it, on auth login it always redirects to localhost/3000 even tho nowhere in my whole app is there a single mention of it, not even in google console, why?
11 Replies
i wanted to make it so, on success to go to /dashboard
here are the links from google cloud
Check your Supabase dashboard URLs section to make sure you don't have
localhost:3000 in there.
Also this url MYSITELINK/auth/callback must be in your Redirect URLs list in the Supabase dashboard. It must match exactly that and not be using wildcard urls.Please don't shout mods you are not in a conversation with and your question has nothing to do with the OP's topic. Please start a new post with as much detail as you can.
lmao odd people
how do i check that, if you mean in vscode, there is none
it is
nevermind, found it... it should have been clearer on how to do that
but it is what it is, thank you
@silentworks one more thing, how to make it on success to redirect me to /dashboard, it always just redirects me to home page
You've modified the original
auth/callback script provided in the Supabase docs so this will no longer redirect to the page you want it to. You have explicitly stated it should redirect to your MYSITELINK in the code you shared above.fine, i did this but its the same
What's the last console log that was written when you tried this?
none, it doesnt console log nothing for some reason
Which means this is never reached. Which means your middleware is redirecting you before you even get to this endpoint.
how bruh, this is confusing
ughh
What does your middleware look like? share it here.
Also can you share a screenshot of your directory structure which should show the
middleware.ts file in it too.