소스 검색

update logout to clean the localstorage

Daniel Bohry 9 달 전
부모
커밋
915c12253d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/routes/logout/+page.svelte

+ 2 - 0
src/routes/logout/+page.svelte

@@ -3,6 +3,8 @@
     import {authentication} from '../store.js';
 
     function logout() {
+        localStorage.removeItem('authentication');
+        authentication.set(null);
         localStorage.clear();
         window.location.href = "/login";
     }