{"repo":"PlusAuth/oidc-client-js","free":true,"listed":false,"github":"https://github.com/PlusAuth/oidc-client-js","clone":"git clone https://github.com/PlusAuth/oidc-client-js.git","description":"OpenID Connect (OIDC) and OAuth2 library for browser-based JavaScript applications.","language":"TypeScript","stars":16,"topics":["openid-connect","oidc","oauth2-library","typescript","plusauth","openid-connect-client","jwt","oauth2","oidc-client","authentication"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"@plusauth/oidc-client-js 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 - Documentation - Access Token Refreshing - Use Refresh Token - Login with popup - Logout with popup - Third-party cookies and Session Management - Additional Methods - Examples Installation From the CDN: Using package managers: Documentation Initialization Create the OIDCClient instance before rendering or initializing your application. Or with create helper method: Using createOIDCClient does a couple of things automatically: It creates an instance of OIDCClient . It calls silentLogin to refresh the user session. It suppresses all errors from silentLogin . Create callback page OpenID Connect / OAuth2 authorization flows require a redirect uri to return the authorization result back. Create a page and register its url to your client's allowed redirect uris. In your page initialize OIDCClient and all you need to do is call loginCallback method. Login and get user info Create a login button users can click. In the click event handler of button you created, call login met","default_branch":null,"files":null,"tree":[],"storefront":"/r/PlusAuth","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PlusAuth/oidc-client-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}