You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to solve the same problem and came across your project. However i am struggling to implement it, because session has been removed from $app/stores.
Any idea how to fix it?
The text was updated successfully, but these errors were encountered:
I've done quite a few streams on setting auth up with Supabase, and some with Auth.js, but none with Firebase since this one, sorry!
The general idea I like at the moment, no matter your specific auth solution, is to use your hook.server.ts to put a getSession in the locals.
Then you can have a load method ((maybe even the load method in your root +layout.server.ts) return it (like return { session: getSession}, or even return { session: await getSession() if you don't want to stream it), and then any component that needs it will find it at $page.data.session.
Let me know if you're still looking for better solutions, or if you've found a different good one in the meantime (hopefully 😅)!
Trying to solve the same problem and came across your project. However i am struggling to implement it, because session has been removed from $app/stores.
Any idea how to fix it?
The text was updated successfully, but these errors were encountered: