simongreenuk
02/15/2022, 9:03 PMfetch
hook to retrieve data (my app is using SSR) and when I first navigate to a page I call this.$supabase.auth.user()
from fetch
and get the user info back but if I refresh the browser null
is then returned, which is causing me a real headache... I can see the user info still in localStorage but I'm not sure why the call to get the user info fails after a reload?simongreenuk
02/15/2022, 9:14 PMError in fetch(): TypeError: Cannot destructure property 'id' of 'this.$supabase.auth.user(...)' as it is null.
simongreenuk
02/15/2022, 9:29 PMfetch
hook I get the error Error in fetch(): ReferenceError: $nuxt is not defined
Mihai Andrei
02/15/2022, 10:09 PMsimongreenuk
02/15/2022, 10:41 PMsimongreenuk
02/15/2022, 10:42 PM