Decode JWT tokens; useful for browser applications.
A new version of the library, including a couple of improvements:
exports
field, for better CJS/ESM supportindex.standalone.ts
, but rely on rollup instead.header
argument by using overloads.Even though some users might experience breaking changes, mostly because of the exports
field, the majority should be able to update without making any changes, assuming the SDK is used in environments with support for atob
.
Migration to v4.0.0
The jwtDecode
function is now no longer the default export, and is instead provided as a named export. Make sure to update your code in places where you are importing this function:
-import jwtDecodefrom "jwt-decode";
+import { jwtDecode } from "jwt-decode";
Fixed
A new version of the library, including a couple of improvements:
exports
field, for better CJS/ESM supportindex.standalone.ts
, but rely on rollup instead.header
argument by using overloads.Additionally, this PR ensures the file size is decreased:
Even though some users might experience breaking changes, mostly because of the exports
field, the majority should be able to update without making any changes, assuming the SDK is used in environments with support for atob
.