This is a stub types definition for @types/jwt-decode (https://github.com/auth0/jwt-decode).
jwt-decode provides its own type definitions, so you don't need @types/jwt-decode installed!
This is a stub types definition. jwt-decode provides its own type definitions, so you do not need this installed.
Stub TypeScript definitions entry for jwt-decode, which provides its own types definitions
This is a stub types definition for @types/jwt-decode (https://github.com/auth0/jwt-decode).
jwt-decode provides its own type definitions, so you don't need @types/jwt-decode installed!
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
.
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 jwtDecode from "jwt-decode";
+import { jwtDecode } from "jwt-decode";
Breaking changes
Fixed
Breaking changes
Changed
Changed
Fixed
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
.
unknown
by defaultJwtHeader
and JwtPayload
that can be used with the generic return type as-is or extended.Warning: this version has some potentially breaking changes!
import * as jwt_decode from 'jwt-decode'
, you'll have to change your import to import jwt_decode from 'jwt-decode';
.