백엔드에서의 불필요한 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

@@ -44,7 +44,7 @@ export const authenticate = (cookies: Cookies) => {
error(401, "Access token not found");
}
const tokenPayload = verifyToken(accessToken.trim());
const tokenPayload = verifyToken(accessToken);
if (tokenPayload === TokenError.EXPIRED) {
error(401, "Access token expired");
} else if (tokenPayload === TokenError.INVALID || tokenPayload.type !== "access") {