mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
암호 키 등록 후 Refresh Token 업그레이드 구현
This commit is contained in:
1 parent
af51f04b94
commit
516375142d
7 files changed
+77
-4
No files matched your search
@@ -41,7 +41,7 @@ export const authenticate = (cookies: Cookies) => {
|
||||
error(401, "Access token not found");
|
||||
}
|
||||
|
||||
const tokenPayload = verifyToken(accessToken);
|
||||
const tokenPayload = verifyToken(accessToken.trim());
|
||||
if (tokenPayload === TokenError.EXPIRED) {
|
||||
error(401, "Access token expired");
|
||||
} else if (tokenPayload === TokenError.INVALID || tokenPayload.type !== "access") {
|
||||
|
||||
Reference in new issue
Block a user