This commit is contained in:
2020-12-19 14:28:49 +01:00
parent 35d379d843
commit 1b7173cda9
11 changed files with 8332 additions and 2769 deletions

View File

@@ -2,6 +2,7 @@ import { writable } from 'svelte/store';
const store = () => {
const state = {
access_token: undefined,
isLoggedIn: false
};
@@ -16,8 +17,9 @@ const store = () => {
});
},
login() {
login(access_token) {
update((state) => {
state.access_token = access_token;
state.isLoggedIn = true;
console.log('login performed');
return state;