Skip to content

Commit

Permalink
Logout previous sessions (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
dorsha authored Nov 13, 2024
1 parent ff3ef18 commit 3d4105e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions examples/commonjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/es6/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3d4105e

Please sign in to comment.