Skip to content

Commit

Permalink
empty savedstops on signout
Browse files Browse the repository at this point in the history
  • Loading branch information
bartaldavid committed Sep 12, 2023
1 parent 7fd0426 commit c854591
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { getAuth, onAuthStateChanged, type Unsubscribe, type User } from 'fireba
// import { initializeFirestore, persistentLocalCache } from 'firebase/firestore';
import { get, readable } from 'svelte/store';
import { invalidateAll } from '$app/navigation';
import { savedStops } from './stores/favorite-stops';

export const app = initializeApp(firebaseConfig);
export const auth = getAuth();
Expand Down Expand Up @@ -85,4 +86,5 @@ export async function signUserOut() {
}
await invalidateAll();
await setToken('');
savedStops.set([]);
}

0 comments on commit c854591

Please sign in to comment.