diff --git a/js/libs/keycloak-js/package.json b/js/libs/keycloak-js/package.json index a48ab5a9d1..aaf07aff07 100644 --- a/js/libs/keycloak-js/package.json +++ b/js/libs/keycloak-js/package.json @@ -53,6 +53,6 @@ "dependencies": { "base64-js": "^1.5.1", "js-sha256": "^0.10.1", - "jwt-decode": "^3.1.2" + "jwt-decode": "^4.0.0" } } diff --git a/js/libs/keycloak-js/src/keycloak.js b/js/libs/keycloak-js/src/keycloak.js index fdd27b46dc..257522b341 100755 --- a/js/libs/keycloak-js/src/keycloak.js +++ b/js/libs/keycloak-js/src/keycloak.js @@ -16,7 +16,7 @@ */ import base64 from 'base64-js'; import sha256 from 'js-sha256'; -import jwtDecode from 'jwt-decode'; +import { jwtDecode } from 'jwt-decode'; if (typeof Promise === 'undefined') { throw Error('Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.'); diff --git a/js/pnpm-lock.yaml b/js/pnpm-lock.yaml index a0a95e1d0b..15f2adbb85 100644 --- a/js/pnpm-lock.yaml +++ b/js/pnpm-lock.yaml @@ -360,8 +360,8 @@ importers: specifier: ^0.10.1 version: 0.10.1 jwt-decode: - specifier: ^3.1.2 - version: 3.1.2 + specifier: ^4.0.0 + version: 4.0.0 devDependencies: '@rollup/plugin-commonjs': specifier: ^25.0.7 @@ -5010,8 +5010,9 @@ packages: object.values: 1.1.7 dev: true - /jwt-decode@3.1.2: - resolution: {integrity: sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==} + /jwt-decode@4.0.0: + resolution: {integrity: sha512-+KJGIyHgkGuIq3IEBNftfhW/LfWhXUIY6OmyVWjliu5KH1y0fw7VQ8YndE2O4qZdMSd9SqbnC8GOcZEy0Om7sA==} + engines: {node: '>=18'} dev: false /keyv@4.5.3: