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
You've got this identical bit of code for handling Supabase auth sessions in quite a few pages. Since it's likely that every page needs to know if you're logged in or not, you could put this into pages/_app.js. This components sits "above" all other pages, so any code in here will run for every page. You could then pass the session down as a prop to the pages:
FACTube/pages/myvideos.js
Lines 7 to 14 in 78d06ea
You've got this identical bit of code for handling Supabase auth sessions in quite a few pages. Since it's likely that every page needs to know if you're logged in or not, you could put this into
pages/_app.js
. This components sits "above" all other pages, so any code in here will run for every page. You could then pass thesession
down as a prop to the pages:The text was updated successfully, but these errors were encountered: