From 3d4105ee4572cd3abd506d7c2a8c2730c3531c2b Mon Sep 17 00:00:00 2001 From: Doron Sharon Date: Wed, 13 Nov 2024 14:17:05 +0200 Subject: [PATCH] Logout previous sessions (#414) --- README.md | 6 ++++++ examples/commonjs/package-lock.json | 6 +++--- examples/es6/package-lock.json | 6 +++--- package-lock.json | 8 ++++---- package.json | 2 +- 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c6dff80a..4a408dfa 100644 --- a/README.md +++ b/README.md @@ -503,6 +503,12 @@ invalidate all user's refresh tokens. After calling this function, you must inva await descopeClient.logoutAll(refreshToken); ``` +It is also possible to sign the user out from all previous sessions. + +```typescript +await descopeClient.logoutPrevious(refreshToken); +``` + ## Management Functions It is very common for some form of management or automation to be required. These can be performed diff --git a/examples/commonjs/package-lock.json b/examples/commonjs/package-lock.json index 9a41a6ba..b6c00778 100644 --- a/examples/commonjs/package-lock.json +++ b/examples/commonjs/package-lock.json @@ -15,10 +15,10 @@ }, "../..": { "name": "@descope/node-sdk", - "version": "1.6.10", + "version": "1.6.11", "license": "MIT", "dependencies": { - "@descope/core-js-sdk": "2.25.1", + "@descope/core-js-sdk": "2.30.0", "cross-fetch": "^4.0.0", "jose": "5.2.2", "tslib": "^2.0.0" @@ -11121,7 +11121,7 @@ "@descope/node-sdk": { "version": "file:../..", "requires": { - "@descope/core-js-sdk": "2.25.1", + "@descope/core-js-sdk": "2.30.0", "@rollup/plugin-commonjs": "^25.0.0", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^13.3.0", diff --git a/examples/es6/package-lock.json b/examples/es6/package-lock.json index 74a11e2c..6f6053a8 100644 --- a/examples/es6/package-lock.json +++ b/examples/es6/package-lock.json @@ -25,10 +25,10 @@ }, "../..": { "name": "@descope/node-sdk", - "version": "1.6.10", + "version": "1.6.11", "license": "MIT", "dependencies": { - "@descope/core-js-sdk": "2.25.1", + "@descope/core-js-sdk": "2.29.1", "cross-fetch": "^4.0.0", "jose": "5.2.2", "tslib": "^2.0.0" @@ -1863,7 +1863,7 @@ "@descope/node-sdk": { "version": "file:../..", "requires": { - "@descope/core-js-sdk": "2.25.1", + "@descope/core-js-sdk": "2.29.1", "@rollup/plugin-commonjs": "^25.0.0", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^13.3.0", diff --git a/package-lock.json b/package-lock.json index ad3ed8eb..e3927ad3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.6.11", "license": "MIT", "dependencies": { - "@descope/core-js-sdk": "2.25.1", + "@descope/core-js-sdk": "2.30.0", "cross-fetch": "^4.0.0", "jose": "5.2.2", "tslib": "^2.0.0" @@ -607,9 +607,9 @@ } }, "node_modules/@descope/core-js-sdk": { - "version": "2.25.1", - "resolved": "https://registry.npmjs.org/@descope/core-js-sdk/-/core-js-sdk-2.25.1.tgz", - "integrity": "sha512-qncEFoHHiz4dyOdgLvegReMmHB6BVvHculS1Z+qgFyikYeuh7LjZop3uQphU8RDr9o404FtiGaddzedq3U9Llg==", + "version": "2.30.0", + "resolved": "https://registry.npmjs.org/@descope/core-js-sdk/-/core-js-sdk-2.30.0.tgz", + "integrity": "sha512-4dkl4pKEV95WD6PNUkKpxCn88gc/+38D5BCZCM7DpbmOLda6XuiMV4cp3G7HM+xmElxq9ZoyuY2PmIOj6RNYrg==", "dependencies": { "jwt-decode": "4.0.0" } diff --git a/package.json b/package.json index 4cffab3b..60be1992 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "typescript": "^4.6.4" }, "dependencies": { - "@descope/core-js-sdk": "2.25.1", + "@descope/core-js-sdk": "2.30.0", "cross-fetch": "^4.0.0", "jose": "5.2.2", "tslib": "^2.0.0"