first merge to main 🚀 #71

Manually merged
philipp merged 491 commits from dev into main 2021-02-19 17:03:06 +00:00
Showing only changes of commit 2cbb431acc - Show all commits

View File

@ -1,5 +1,6 @@
import { writable } from 'svelte/store'; import { writable } from 'svelte/store';
import { OpenAPI, AuthService } from '@odit/lfk-client-js'; import { OpenAPI, AuthService } from '@odit/lfk-client-js';
import localForage from "localforage";
export let users = writable([]); export let users = writable([]);
export let tracks = writable([]); export let tracks = writable([]);
@ -27,7 +28,7 @@ const store = () => {
console.log('got new auth'); console.log('got new auth');
console.log(auth); console.log(auth);
OpenAPI.TOKEN = auth.access_token; OpenAPI.TOKEN = auth.access_token;
// TODO: update localstorage localForage.setItem('logindata', auth);
}); });
}, },
login(auth, jwtinfo) { login(auth, jwtinfo) {