data.session from supabase.auth.getSession() is always null.
So... I consider myself a javascript/typescript newbie but I've been using supabase for several months now just fine.
I've recently started a new project in which I installed the latest version of supabase.js which uses the new
To be specific, I'm using
This is the code I'm trying to run:
I've also tried using
What am I doing wrong? :S
I've recently started a new project in which I installed the latest version of supabase.js which uses the new
javascript v2.0 release and no matter what I try data.session from supabase.auth.getSession() is always null.To be specific, I'm using
"@supabase/supabase-js": "^2.2.1".This is the code I'm trying to run:
I've also tried using
supabase.getUser() but the result is the same, it's always null.What am I doing wrong? :S