mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 06:58:46 +00:00
Token Upgrade시 챌린지를 거치도록 변경
This commit is contained in:
@@ -7,8 +7,8 @@ export const POST: RequestHandler = async ({ cookies }) => {
|
||||
if (!token) error(401, "Refresh token not found");
|
||||
|
||||
await logout(token.trim());
|
||||
|
||||
cookies.delete("accessToken", { path: "/" });
|
||||
cookies.delete("refreshToken", { path: "/api/auth" });
|
||||
|
||||
return text("Logged out", { headers: { "Content-Type": "text/plain" } });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user