백엔드에서의 불필요한 trim 사용 제거

This commit is contained in:
static
2024-12-31 08:30:41 +09:00
parent 3ee6365ff2
commit 5c535d1191
9 changed files with 16 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ export const POST: RequestHandler = async ({ cookies }) => {
const token = cookies.get("refreshToken");
if (!token) error(401, "Refresh token not found");
await logout(token.trim());
await logout(token);
cookies.delete("accessToken", { path: "/" });
cookies.delete("refreshToken", { path: "/api/auth" });