Décodeur JWT
Décodez l'en-tête et la charge utile d'un JSON Web Token, lisez chaque revendication standard en UTC et dans votre fuseau horaire, et vérifiez une signature HS256, HS384 ou HS512 avec le secret.
S'exécute entièrement dans votre navigateur : rien de ce que vous collez n'est téléversé.
HS256, HS384 et HS512 sont vérifiés dans votre navigateur avec Web Crypto et le secret ne quitte jamais la page. RS256, ES256 et les autres jetons asymétriques sont signés avec la clé privée de l'émetteur et doivent être vérifiés sur votre serveur face à son JWKS public — un secret partagé ne peut pas les vérifier, et un jeton n'est fiable qu'après cette vérification.
{
"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.
Référence des revendications JWT
référence rapide- iss
- Émetteur : l'autorité qui a créé et signé le jeton.
- sub
- Sujet : ce dont parlent les revendications, souvent un identifiant utilisateur.
- aud
- Audience : l'API ou le service auquel le jeton est destiné, à vérifier avant de l'accepter.
- exp
- Moment d'expiration en secondes NumericDate ; le jeton doit être refusé après cet instant.
- nbf
- Pas avant : le jeton ne doit pas être accepté avant cet instant.
- iat / jti
- iat est l'heure d'émission en secondes NumericDate, jti un identifiant unique utilisé pour les listes de révocation.
Guides de syntaxe Node.js
Tous les guides Node.jsNode.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.