- archive_date: 2026-04-03
- archived_by: avazinrupt
- last_commit: f20b659
- original_purpose: OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
- deprecation_reason: No longer in use
- replacement_solution: none
- security_scan_partition: archived-repos
- review_schedule: semi-annual
- next_review: [2026-09-01]
This repository is ARCHIVED and NO LONGER MAINTAINED. It may contain:
- Known security vulnerabilities that will NOT be fixed
- Outdated dependencies with critical security issues
- Deprecated practices that do not meet current security standards DO NOT USE THIS CODE (E.G. IN PRODUCTION)
- Is NOT actively maintained
- Will NOT receive security updates
- Will NOT receive bug fixes
- Should NOT be used as a reference for current practices
This repository is retained for compliance/historical purposes only under the Inrupt Source Code Archive Standards.
I've been working as the main and (for the most part) only individual on this project for 6+ years. Much has changed since then in the work of JavaScript and many updates are needed here. I no longer have the time to keep up and maintain this library and project (well, really haven't for some time now as many know).
As such, I plan to disable PRs and won't be responding to issues going forward. The repo will be archived by the end of the year.
If anyone wishes to step up and maintain this project, then that is very welcome! I suggest forking and then once there's a track record for such a commitment I would be happy to provide a link to your new repo letting people know that it is now maintained elsewhere.
Please contact me if you're interested in doing this: @BrockLAllen
So long and thanks for all the fish.
Library to provide OpenID Connect (OIDC) and OAuth2 protocol support for client-side, browser-based JavaScript client applications. Also included is support for user session and access token management.
Node.js v4.4 or later required.
npm install oidc-client --save
NOTE: if you're not already using babel-polyfill make sure you run
npm install --save babel-polyfill as well. Then include it in your build.
If you don't use a package manager or a module loader, then you can get the library from the dist folder on github here.
If you intend to use this library directly in a browser and are not using UMD/AMD then there is a compiled version in the ~/dist folder. It is already bundled/minified and contains the necessary dependencies and polyfills (mainly for ES6 features such as Promises).
If you are using UMD/AMD and/or you already have included an ES6 polyfill (such as babel-polyfill.js) then you can include the UMD packaged version of the file from the ~/lib folder.
git clone https://github.com/inrupt/oidc-client-js.git
cd oidc-client-js
npm install
npm run build
npm start
and then browse to http://localhost:15000.
npm test
Some initial docs are here.
All are welcome on the issue tracker.