Issue with redirect using OAuth with local development
I'm building a SvelteKit app using Supabase SSR and am running a local version of Supabase for development. I have configured the env variables according to the Supabase docs, adding both the local site URL and redirect destionation in
I am triggering a Github login via a form action, which has the redirect url
The callback page has a server function defined as
Unfortunately, when I trigger the Github signin, I get this error log with a redirect URL that includes the public:
I've done the obvious things like
The
Any suggestions? Thank you!
config.toml and my remote db in .env to get Supabase SSR working.supabase/config.toml: https://github.com/brucey0x/bv_markdown_blog/blob/293ec43410db654d60882e540f1fc2fd2cad9f66/supabase/config.tomlI am triggering a Github login via a form action, which has the redirect url
src/routes/auth/+page.server.ts: https://github.com/brucey0x/bv_markdown_blog/blob/293ec43410db654d60882e540f1fc2fd2cad9f66/src/routes/auth/%2Bpage.server.tsThe callback page has a server function defined as
src/routes/auth/callback/+server.ts: https://github.com/brucey0x/bv_markdown_blog/blob/293ec43410db654d60882e540f1fc2fd2cad9f66/src/routes/auth/callback/%2Bserver.tsUnfortunately, when I trigger the Github signin, I get this error log with a redirect URL that includes the public:
I've done the obvious things like
supabase stop && supabase start but can't figure out why it's including my public supabase URL in the url while ALSO including the local redirect.The
auth?/signin request works and returns a 204 success response. But the src/routes/auth/callback/+server.ts logs aren't trigerring so the page isn't being hit.Any suggestions? Thank you!