feat: introduce bull dashboard
This commit is contained in:
parent
c0bf7cd871
commit
caadc0978a
7 changed files with 648 additions and 6 deletions
|
|
@ -116,6 +116,7 @@ export async function login(token: Account['token'], redirect?: string) {
|
|||
if (_DEV_) console.log('logging as token ', token);
|
||||
const me = await fetchAccount(token);
|
||||
localStorage.setItem('account', JSON.stringify(me));
|
||||
document.cookie = `token=${token}; path=/; max-age=31536000`; // bull dashboardの認証とかで使う
|
||||
await addAccount(me.id, token);
|
||||
|
||||
if (redirect) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue