fix: remove unused functions
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
36f21f7ff5
commit
9db9041048
2 changed files with 1 additions and 25 deletions
|
@ -44,7 +44,7 @@ export const useAuth = () => {
|
||||||
await fetchWithApi("/auth/logout", { method: "GET", credentials: "include" });
|
await fetchWithApi("/auth/logout", { method: "GET", credentials: "include" });
|
||||||
clearAuth();
|
clearAuth();
|
||||||
|
|
||||||
return await navigateTo("/login");
|
return await navigateTo("/login");
|
||||||
}
|
}
|
||||||
|
|
||||||
async function revoke(password: string) {
|
async function revoke(password: string) {
|
||||||
|
|
|
@ -88,30 +88,6 @@ async function selectInstance(e: Event) {
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
password: ""
|
password: ""
|
||||||
});
|
});
|
||||||
|
|
||||||
async function logout(e: Event) {
|
|
||||||
e.preventDefault();
|
|
||||||
await auth.logout(form.password);
|
|
||||||
console.log("logout");
|
|
||||||
}
|
|
||||||
|
|
||||||
async function refresh(e: Event) {
|
|
||||||
e.preventDefault();
|
|
||||||
await auth.refresh();
|
|
||||||
console.log("refreshed");
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getUser(e: Event) {
|
|
||||||
e.preventDefault();
|
|
||||||
await auth.getUser();
|
|
||||||
console.log("user:", auth.user.value);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function showUser(e: Event) {
|
|
||||||
e.preventDefault();
|
|
||||||
console.log("user:", auth.user.value);
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue