Back to Explore

auth0/jwt-decode

GitHub
1 watchersOpen source

Last release:

jwt-decode is a browser-focused JavaScript library for decoding JSON Web Tokens (JWTs) that are Base64Url encoded, returning the decoded payload or header. It is useful for extracting claim data in client-side applications, but it does not validate token signatures or contents, so validation should be done server-side with a JWT verification library.

Project status

  • Auth0/jwt-decode appears maintained at the repository level, with a recent upstream push on 2026-08-03, but the last documented package update shown here is v4.0.0 from 2023-10-27, so publicly visible updates seem infrequent since then.
  • The apparent update cadence (based on provided update entries) is sparse, with major updates clustered in mid to late 2023 and no newer tagged updates listed through 2026-08-12, suggesting either a quiet period or no recent releases captured in the summaries.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v4.0.0

    v4.0.0 rewrites jwt-decode to use a modern ESM/CJS setup via the package.json exports field, and it changes the public API to provide jwtDecode as a named export instead of a default export. The implementation also removes the bundled atob polyfill and relies on the runtime atob, with TypeScript overloads to infer return types based on options.header.

    BreakingFeatures
  • v4.0.0-beta.4

    Release v4.0.0-beta.4 updates the project to require Node.js 18+. The diff also includes TypeScript-level refinements around jwtDecode error handling/typing, plus substantial build and tooling changes (linting, CI workflows, and dev dependencies).

    BreakingFeatures
  • v4.0.0-beta.3

    v4.0.0-beta.3 removes the UMD bundle and switches the build pipeline away from rollup/tsup to a tsc-based build. The core JWT decoding logic remains in lib/index.ts, but module entry points, build outputs, and some internals were reorganized to match the new packaging approach.

    Breaking
  • v4.0.0-beta.2

    v4.0.0-beta.2 shifts the library to TypeScript source (lib/index.ts) and updates the public packaging so that default exports are avoided and types are bundled correctly. It also modernizes the build and test setup (rollup/ts + jest) and changes how the package is exported for ESM vs CJS consumption.

    Breaking
  • v4.0.0-beta.1

    v4.0.0-beta.1 contains a single fix related to the package build process. The release ensures the build step runs during the npm prepack phase, which helps prevent publishing artifacts from being out of date.

  • v4.0.0-beta.0

    v4.0.0-beta.0 updates the library build and runtime assumptions, including removing the atob polyfill, changing the compile target to ES2017, and modernizing Node support (dropping Node 14, adding Node 20). It also reorganizes published build artifacts to improve CJS/ESM support and adds support for package.json exports, which may affect how consumers import the package.

    BreakingFeatures