[](https://badge.fury.io/js/%40toruslabs%2Fbase-session-manager) 
npm install @toruslabs/base-session-manager
!npm
This utility library serves defines the interfaces required for session manager implementations. It also provides a base class that can be extended to implement a session manager.
- Typescript compatible. Includes Type definitions
- All API's return Promises
This module is distributed in 3 formats
- esm build dist/baseSessionManager.esm.js in es6 format
- commonjs build dist/baseSessionManager.cjs.js in es5 format
- umd build dist/baseSessionManager.umd.min.js in es5 format without polyfilling corejs minified
By default, the appropriate format is used for your specified usecase
You can use a different format (if you know what you're doing eg. node) by referencing the correct file
The cjs build is not polyfilled with core-js.
It is upto the user to polyfill based on the browserlist they target
CDN's serve the non-core-js polyfilled version by default. You can use a different
jsdeliver
``js`
unpkg
`js`
Add @toruslabs/base-session-manager to your project:
- This package requires a peer dependency of @babel/runtime`
- Node 18+