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 6213c773c3
commit 63de9c82a4
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);