From 39cec55bbe738a4c5f93913b9b016050a1953d10 Mon Sep 17 00:00:00 2001
From: Ilion Beyst <ilion.beyst@gmail.com>
Date: Sat, 16 Apr 2022 10:30:11 +0200
Subject: format & cleanup

---
 web/pw-server/src/lib/components/navbar/UserControls.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'web/pw-server/src/lib/components/navbar/UserControls.svelte')

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>
 
-- 
cgit v1.2.3

