supertokens-node
Version:
NodeJS driver for SuperTokens core
16 lines (10 loc) • 994 B
Markdown
## [11.0.0] - 2022-07-05
### Breaking change:
- Changes session function recipe interfaces to not throw an UNAUTHORISED error when the input is a sessionHandle: https://github.com/supertokens/backend/issues/83
- `getSessionInformation` now returns `undefined` is the session does not exist
- `updateSessionData` now returns `false` if the input `sessionHandle` does not exist.
- `updateAccessTokenPayload` now returns `false` if the input `sessionHandle` does not exist.
- `regenerateAccessToken` now returns `undefined` if the input access token's `sessionHandle` does not exist.
- The sessionClass functions have not changed in behaviour and still throw UNAUTHORISED. This works cause the sessionClass works on the current session and not some other session.
### Bug fix:
- Clears cookies when revokeSession is called using the session container, even if the session did not exist from before: https://github.com/supertokens/supertokens-node/issues/343