Implementing Supabase Authentication with useEffect in React
Hello, I want to play a bit with supabase and so I took the example from their website and of course it works, I now want to make it the Effect way:
would it make sense to have supabase as a service? if so, should I define in that service the
would it make sense to have supabase as a service? if so, should I define in that service the
getSession and onAuthStateChange as fields? does it have any return value? or maybe should I rename it to my preference naming? how would you go about it? thank you !!