JWT 디코더
JSON Web Token의 헤더와 페이로드를 디코딩하고, 표준 클레임을 UTC와 현재 시간대 기준으로 확인하며, 시크릿으로 HS256·HS384·HS512 서명을 검증합니다.
브라우저 안에서만 실행됩니다. 입력한 내용은 어디에도 업로드되지 않습니다.
HS256, HS384, HS512는 브라우저의 Web Crypto로 검증하며 시크릿은 페이지를 벗어나지 않습니다. RS256, ES256 등 비대칭 토큰은 발급자의 개인 키로 서명되므로 서버에서 공개 JWKS로 확인해야 합니다. 공유 시크릿으로는 검증할 수 없고, 그 확인을 거친 뒤에야 토큰을 신뢰할 수 있습니다.
{
"alg": "HS256",
"typ": "JWT"
}{
"sub": "user_8f42d1",
"name": "Ryu",
"iss": "https://auth.ryuslog.com",
"aud": "ryuslog-api",
"role": "admin",
"iat": 1763251200,
"exp": 1763254800
}subuser_8f42d1Subject — the user or principal these claims describe.nameRyuName — human readable display name of the subject.isshttps://auth.ryuslog.comIssuer — the authority that created and signed the token.audryuslog-apiAudience — the service that is allowed to accept this token.roleadminRole — custom claim used by many applications for authorization.iat176325120016 Nov 2025, 00:00:00 UTC · UTCIssued At — when the token was created.exp176325480016 Nov 2025, 01:00:00 UTC · UTCExpiration Time — the token must be rejected after this instant.
JWT 클레임 참고
빠른 참조- iss
- 발급자. 토큰을 만들고 서명한 주체입니다.
- sub
- 주체. 클레임이 가리키는 대상이며 보통 사용자 ID입니다.
- aud
- 대상. 이 토큰을 받도록 의도된 API나 서비스이며, 받아들이기 전에 반드시 확인해야 합니다.
- exp
- 만료 시각을 NumericDate 초로 나타냅니다. 이 시점 이후에는 토큰을 거부해야 합니다.
- nbf
- 이 시각 이전에는 토큰을 받아들이면 안 된다는 뜻입니다.
- iat / jti
- iat는 발급 시각(NumericDate 초), jti는 폐기 목록에 쓰는 고유 토큰 ID입니다.
Node.js 관련 문법 가이드
Node.js 가이드 전체Node.js JWT invalid signature: JWKS Rotation and Clock Skew
One message covers three bugs: the wrong key type for RS256 or ES256, a JWKS cache that never refreshes after a kid rotation, and a clock that drifted.
Node.jsERR_REQUIRE_ESM and __dirname Is Not Defined in ESM Projects
require of an ESM-only package has nothing to load, and ESM creates none of the CommonJS wrapper globals. Dynamic import, createRequire, and the path replacements.
Node.jsNode.js fetch ETIMEDOUT and SELF_SIGNED_CERT_IN_CHAIN Debugging
fetch failed hides everything in error.cause. Read the aggregate, trust the private CA the way curl does, route the proxy, and set the connect timeout undici does not.
Node.jsNode.js JavaScript heap out of memory: Snapshots and Real Leaks
Distinguish needs more from leaks before raising the flag: external memory and heap tell different stories, and a heap ceiling at three quarters of the container limit keeps V8 able to report.