tmp
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user