🛂 security: fix auth token validation flow

This commit is contained in:
2026-02-17 21:32:27 +07:00
parent 5eb7f753a5
commit 4fc87b7134
5 changed files with 24 additions and 22 deletions

View File

@ -0,0 +1,9 @@
import { cookies } from "next/headers";
import { redirect } from "next/navigation";
const page = async () => {
(await cookies()).delete("auth_token");
redirect("/");
};
export default page;

View File

@ -0,0 +1,7 @@
import AuthCallbackIndex from "@/features/authCallback";
const page = async () => {
return <AuthCallbackIndex />;
};
export default page;