@toruslabs/openlogin-session-manager
v3.1.1
Published
[![npm version](https://badge.fury.io/js/%40toruslabs%2Fopenlogin-session-manager.svg)](https://badge.fury.io/js/%40toruslabs%2Fopenlogin-session-manager) ![npm](https://img.shields.io/npm/dw/@toruslabs/openlogin-session-manager)
Downloads
58,345
Keywords
Readme
openlogin-session-manager
Introduction
This library implements a session manager for openlogin web.
Features
- Typescript compatible. Includes Type definitions
- All API's return
Promises
Installation
Bundling
This module is distributed in 3 formats
esm
builddist/openloginSessionManager.esm.js
in es6 formatcommonjs
builddist/openloginSessionManager.cjs.js
in es5 formatumd
builddist/openloginSessionManager.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
Directly in Browser
CDN's serve the non-core-js polyfilled version by default. You can use a different
jsdeliver
<script src="https://cdn.jsdelivr.net/npm/@toruslabs/openlogin-session-manager"></script>
unpkg
<script src="https://unpkg.com/@toruslabs/openlogin-session-manager"></script>
Usage
Add @toruslabs/openlogin-session-manager
to your project:
Requirements
- This package requires a peer dependency of
@babel/runtime
- Node 18+