Hey there 👋 I'm trying to add OAuth to a Supabas...
# help
p
Hey there 👋 I'm trying to add OAuth to a Supabase app, I'd like to handle the login on the server-side, the issue is that Supabase is sending the callback with
#
instead of query params, any idea how to approach it? **Example**:
http://localhost:3000/login#access_token=ooo&expires_in=3600&provider_token=ooo&refresh_token=ooo&token_type=bearer
k
You need to forward the hash fragment to wherever you need it, there's no way to turn it into query params.
i
do you know the reason behind sending hash instead of query params? arent query params easier to work with? maybe it could be a possible change to make the dev experience easier
a
u can just declare winow as a const and then use window.location.href.split('#').pop()
p
Thanks, i will try to get it on the client side and send it to the server, not optimal at all. I really don't understand why using hash and not query params