mjudeikis / oidc-client-js

OpenID Connect (OIDC) and OAuth2 library for browser-based JavaScript applications.

Home Page:https://docs.plusauth.com/tools/oidc-client-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@plusauth/oidc-client-js

Build Status npm npm bundle size (scoped) npm bundle size (scoped) Codecov Vulnerabilities license

OpenID Connect (OIDC) and OAuth2 library for browser based JavaScript applications.

Features

  • Silent Authentication
  • Automatic Access Token Renewal
  • OAuth 2.0 Token Revocation
  • Session Management (with logout functionality)
  • PKCE
  • JWT payload validation
  • Can be used with any OAuth 2.0 / OpenID Connect provider
  • Cross tab/window login synchronization
  • Dispatches single request per tab/window to prevent inconsistency
  • Official TypeScript support

Table of Contents

Installation

From the CDN:

⚠ NOTE: Although @plusauth/oidc-client-js follows semantic versioning, we advise using specific versions in CDN links as they are easy to forget and latest version may break up your application. Make sure to check releases and use the specific version.

<script src="https://unpkg.com/@plusauth/oidc-client-js@1.1.2/dist/oidc-client.min.js"></script>

Using npm:

npm install @plusauth/oidc-client-js

or yarn:

yarn add @plusauth/oidc-client-js

Documentation

Documentation is served on PlusAuth documentation site. You can reach it from here

Api Docs

Please visit here

Browser Support

Browserlist Coverage

Examples

Have a look at examples directory for various examples

About

OpenID Connect (OIDC) and OAuth2 library for browser-based JavaScript applications.

https://docs.plusauth.com/tools/oidc-client-js

License:MIT License


Languages

Language:TypeScript 96.1%Language:JavaScript 3.8%Language:Shell 0.1%