Description
oidc-client-ts is a JavaScript and TypeScript library that adds OpenID Connect and OAuth 2.0 sign-in to browser-based applications. It handles user sessions and access token management on the client side. The library started as a fork of IdentityModel's oidc-client-js, which stopped development in June 2021, and it has been ported to TypeScript with a similar API for its 2.0 release. Going forward it focuses only on protocols still supported in OAuth 2.1, so the implicit grant is not included. It implements the authorization code grant with Proof Key for Code Exchange, the plain authorization code grant, the resource owner password credentials grant, the refresh token grant and the silent refresh flow using an iframe, and it supports OpenID Connect Core 1.0. Installation is through npm, and the repository has steps for building from source, running the sample apps and running the tests. Migration notes from oidc-client are provided. It is aimed at front-end developers who need to add a standards-based login to a single-page app, and the project is public on GitHub.…
Highlights
- OpenID Connect and OAuth 2.0 in the browser
- Authorization code flow with PKCE
- Silent refresh and refresh token grant
- Session and access token management
Ratings & Reviews
No ratings yet
Be the first to rate Oidc Client TS.
People also visit
Oauth4webapi
Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Oidc Client TS FAQ
What is oidc-client-ts?
A library that adds OpenID Connect and OAuth 2.0 sign-in to browser-based JavaScript apps, including session and token handling.
Is it free?
Yes. The source is public on GitHub and the listing shows no paid plan.
How do I install it?
With npm. The README's installation section gives the command.
Does it support PKCE?
Yes. It implements the authorization code grant with Proof Key for Code Exchange.
Is the implicit grant supported?
No. The README says the library focuses on protocols supported in OAuth 2.1, so the implicit grant is not supported.
Where did it come from?
It is a TypeScript port of IdentityModel's oidc-client-js, which stopped development in June 2021.
What are the best Oidc Client TS alternatives?
Popular alternatives to Oidc Client TS include Oidc Spa, Spring Addons and Pocket ID. See all Oidc Client TS alternatives




