Sun Mar 8 09:35:08 AM CST 2026

This commit is contained in:
2026-03-08 09:35:08 +08:00
parent dd1c6a7b52
commit 67ac0bf7b6
5 changed files with 174 additions and 106 deletions

View File

@@ -139,13 +139,13 @@ export async function signOutAction() {
headers: await headers()
});
redirect("/auth");
redirect("/login");
} catch (e) {
if (e instanceof Error && e.message.includes('NEXT_REDIRECT')) {
throw e;
}
console.error("Sign out error:", e);
redirect("/auth");
redirect("/login");
}
}