nemo
Hono Supabase OAuth Error
No. I changed nothing. Restarted my PC just in case. Worked once, then back to this. Could be some issue with local environment?
Ref: https://github.com/supabase/supabase/discussions/21183#discussioncomment-12293822
65 replies
Hono Supabase OAuth Error
So last night it worked fine. And in the morning, some energy decided to kill my energy and started giving me a new error which is from Supabase actually:
Someone provided a solution on Github, however, I am not quite sure on how to implement it on hono: https://github.com/orgs/supabase/discussions/21183#discussioncomment-11877084
Sorry for pinging you @ambergristle , but do you have any idea why the link I shared above works?
65 replies
Hono Supabase OAuth Error
Right now it's part of nothing. I am trying to make OAuth work in the server-side with Supabase. Was following there guide here: https://supabase.com/docs/guides/auth/server-side/creating-a-client?queryGroups=framework&framework=hono&queryGroups=environment&environment=server-client
It's just a dummy route. Without SSR, I am able to get till the callback URL part. But at that point, supabase sends the access token in a format like this:
http://localhost:3000/auth/oauth/google/callback#access_token=eyJhbGci...&expires_at=1742897402&expires_in=3600&provider_token=ya29.a0AeXRPp6z
, now I can't get the access token to exchange it for a session. That's my primary problem.65 replies