mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 06:58:46 +00:00
백엔드에서의 불필요한 trim 사용 제거
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user