Compare commits

..

No commits in common. "b337873ca214682487844973104772539956c09a" and "6d0bca6d6783d3f7bbff5d413b158c6b60720bd8" have entirely different histories.

2 changed files with 1 additions and 7 deletions

View File

@ -27,12 +27,6 @@
storeName: "lfk_admin",
description: "LfK! admin dashbaord",
});
window.onunhandledrejection = event => {
if(event.reason.toString() == "Error: Unauthorized"){
console.log("Found 1")
localForage.clear();
location.replace("/");
}};
//
import Login from "./components/auth/Login.svelte";
import Dashboard from "./components/dashboard/Dashboard.svelte";

View File

@ -28,7 +28,7 @@ const store = () => {
const jwtinfo = JSON.parse(atob(auth.access_token.split('.')[1]));
state.jwtinfo = jwtinfo;
localForage.setItem('logindata', auth);
}).catch(this.logout());
});
},
login(auth, jwtinfo) {
update((state) => {