mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 13:08:01 +02:00
closes #119
This commit is contained in:
parent
2e2f6b78f9
commit
08da12fa67
6 changed files with 65 additions and 44 deletions
|
@ -15,6 +15,7 @@ import {
|
|||
} from '@/scripts/db.js';
|
||||
|
||||
import {
|
||||
useAuthLogout,
|
||||
useAuthCreatePlaylist,
|
||||
getAuthPlaylists,
|
||||
getJsonAuth,
|
||||
|
@ -134,9 +135,7 @@ const Open = async key => {
|
|||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
useCreatePlaylist(i.name, i.urls);
|
||||
}
|
||||
} else useCreatePlaylist(i.name, i.urls);
|
||||
|
||||
List();
|
||||
}
|
||||
|
@ -206,12 +205,7 @@ const Login = async () => {
|
|||
}
|
||||
},
|
||||
Logout = async () => {
|
||||
const res = await getJsonAuth('/logout', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
Authorization: store.auth,
|
||||
},
|
||||
});
|
||||
const res = await useAuthLogout();
|
||||
|
||||
if (!res.error) {
|
||||
store.removeItem('auth');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue