aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/components/navbar/UserControls.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'web/pw-server/src/lib/components/navbar/UserControls.svelte')
-rw-r--r--web/pw-server/src/lib/components/navbar/UserControls.svelte3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/pw-server/src/lib/components/navbar/UserControls.svelte b/web/pw-server/src/lib/components/navbar/UserControls.svelte
index 3c1d181..0b8413d 100644
--- a/web/pw-server/src/lib/components/navbar/UserControls.svelte
+++ b/web/pw-server/src/lib/components/navbar/UserControls.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { get_session_token } from "$lib/auth";
+ import { get_session_token, clear_session_token } from "$lib/auth";
import { currentUser } from "$lib/stores/current_user";
import { onMount } from "svelte";
@@ -30,6 +30,7 @@
function signOut() {
// TODO: destroy session on server
currentUser.set(null);
+ clear_session_token();
}
</script>