actually perform user logout (recreate Cookies, invalidate token)
This commit is contained in:
parent
9684c22da3
commit
2048533fda
@ -6,6 +6,7 @@
|
||||
|
||||
import store from "../store";
|
||||
import NoComponentLoaded from "./NoComponentLoaded.svelte";
|
||||
import { AuthService, OpenAPI } from "@odit/lfk-client-js";
|
||||
|
||||
let activePage = "dashboard";
|
||||
let dropdown1 = false;
|
||||
@ -273,6 +274,7 @@
|
||||
tabindex="0"
|
||||
class="flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-100 hover:text-gray-900"
|
||||
on:click={() => {
|
||||
AuthService.authControllerLogout({ token: OpenAPI.TOKEN });
|
||||
logout();
|
||||
}}>
|
||||
<svg
|
||||
|
Loading…
x
Reference in New Issue
Block a user