We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2b08df commit 756d470Copy full SHA for 756d470
apps/frontend/src/app/services/login-store.ts
@@ -6,4 +6,10 @@ export function setToken(token: string): void {
6
7
export function getToken(): string {
8
return KEY in window.localStorage ? window.localStorage[KEY] : ""
9
+}
10
+
11
+export function deleteToken() {
12
+ if (KEY in window.localStorage) {
13
+ window.localStorage.removeItem(KEY);
14
+ }
15
}
0 commit comments