On useSupabaseClient().auth.signOut(), useSupabaseUser().value is set to null
However useSupabaseUser().value = null; > Type 'null' is not assignable to type 'User'.ts(2322)
What is Expected?
useSupabaseUser() to be of type Ref<User|null> instead of Ref<User>
Version
@nuxtjs/supabase: 1.3.5 nuxt: 3.13.0
Steps to reproduce & what is actually happening?
On
useSupabaseClient().auth.signOut()
,useSupabaseUser().value
is set tonull
HoweveruseSupabaseUser().value = null;
> Type 'null' is not assignable to type 'User'.ts(2322)What is Expected?
useSupabaseUser()
to be of typeRef<User|null>
instead ofRef<User>