fix middleware

This commit is contained in:
2025-04-07 14:56:50 +08:00
parent c94ecd8f9c
commit eb1a5baff8
3 changed files with 284 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ export default function InvalidUser() {
await fetch("/api/auth/logout", {
method: "GET",
});
router.push("/login");
router.push("/login", {scroll: false});
} catch (error) {
console.error("Gagal menghapus cookie:", error);
} finally {