session manager web
npm install @toruslabs/session-managerThis helps all web SDKs to implement session management.
```
git clone https://github.com/torusresearch/session-manager-web.git
cd session-manager-web
npm i
npm run bootstrap
Each sub package is distributed in 3 formats
- lib.esm build dist/lib.esm/index.js in es6 formatlib.cjs
- build dist/lib.cjs/index.js in es5 formatumd
- build dist/sessionManager.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) 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
Ensure you have a Node.JS development environment setup:
``
npm run build
- This package requires a peer dependency of @babel/runtime`
- Node 20+