Skip to content

Commit

Permalink
fix(useSupabaseUser): add explicit user type (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertBrand authored Sep 6, 2023
1 parent 56f658f commit 60d8551
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/composables/useSupabaseUser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { User } from '@supabase/supabase-js'
import type { Ref } from 'vue'
import { useSupabaseClient } from './useSupabaseClient'
import { useState } from '#imports'

Expand All @@ -18,5 +19,5 @@ export const useSupabaseUser = () => {
}
})

return user
return user as Ref<User | null>
}

0 comments on commit 60d8551

Please sign in to comment.