rafaelwendel / phpsupabase

PHP Client to use Supabase
MIT License
187 stars 17 forks source link

Q: How to retrieve callback fragment parameters from frontend after login? #9

Closed leewp14 closed 1 year ago

leewp14 commented 1 year ago

This is offtopic. I was just curious about people who are using supabase for their PHP projects, how do you authenticate your users when the async login didn't return anything useful? Do you parse the url fragment returned on the callback url and make a hidden form on the page to initiate a POST request to server so that PHP able to get the values? I'm implementing Magic Link auth on my Laravel project, and I was brain f*ed thinking how to pass those values to the backend because the values are placed in fragments. So I came across this but found out it is also using the API endpoints only and nothing special, all the auth login function return void. So it should be similar results to my current implementation using supabase JS. Sorry for my noob question... I'm not an expert, I hope to get more information about this, since there's not much information about this on the internet. Thanks!

leewp14 commented 1 year ago

It seems I didn't understand this library properly. I was too quick to ask a question. Sorry! Closing this now...