OIDC (OpenID Connect) authentication client for web browsers (Relying Party wrapper)
Authentication client for use in browser-based JS applications.
$ npm install oidc-web
const { OIDCWebClient } = require('oidc-web')
let auth = new OIDCWebClient({})
auth.login(issuer)
.then(session => {
// logged in session or null
})
// On Document Ready (or on web framework ready) event:
auth.currentSession()
.then(session => {
if (session) {
// logged in
} else {
console.log('please log in')
}
})
git clone https://github.com/solid/oidc-web.git
cd oidc-web
npm install
$ npm test
$ npm run coverage
tbd
This project follows the Contributor Covenant Code of Conduct.