mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-24 17:03:00 +10:00
fix signout
This commit is contained in:
@@ -81,7 +81,7 @@ const navigation: NavigationItem[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Sign out",
|
label: "Sign out",
|
||||||
route: "/signout",
|
route: "/auth/signout",
|
||||||
prefix: "",
|
prefix: "",
|
||||||
},
|
},
|
||||||
].filter((e) => e !== undefined);
|
].filter((e) => e !== undefined);
|
||||||
|
|||||||
@@ -42,6 +42,6 @@ const user = useUser();
|
|||||||
user.value = null;
|
user.value = null;
|
||||||
|
|
||||||
// Redirect to signin page after signout
|
// Redirect to signin page after signout
|
||||||
await $dropFetch("/signout");
|
await $dropFetch("/api/v1/auth/signout"); //TODO: add signout api route
|
||||||
router.push("/auth/signin");
|
router.push("/auth/signin");
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user