feat(*): Make the user object available and reactive in any component

This commit is contained in:
Josh Creek
2024-04-10 22:03:37 +01:00
parent 4c9631e00f
commit 7c0dec0cb4
3 changed files with 27 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
import { writable } from 'svelte/store';
import { type User } from '@supabase/auth-js';
// Create a user store with null as the initial value
export const user = writable<User | null>(null);