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

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

No files matched your search

+1 -1
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") {