nuxt-modules / supabase

Supabase module for Nuxt.
https://supabase.nuxtjs.org
MIT License
733 stars 129 forks source link

`useSupabaseUser()` should be of type `Ref<User|null>` #406

Closed J43fura closed 2 months ago

J43fura commented 2 months ago

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 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>