We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 116e7bc commit 6152a64Copy full SHA for 6152a64
src/runtime/plugins/supabase.client.ts
@@ -41,13 +41,6 @@ export default defineNuxtPlugin({
41
const currentSession = useSupabaseSession()
42
const currentUser = useSupabaseUser()
43
44
- // Initialize user and session states
45
- const {
46
- data: { session },
47
- } = await client.auth.getSession()
48
- currentSession.value = session
49
- currentUser.value = session?.user ?? null
50
-
51
// Updates the session and user states through auth events
52
client.auth.onAuthStateChange((_, session: Session | null) => {
53
if (JSON.stringify(currentSession.value) !== JSON.stringify(session)) {
0 commit comments