Open source alternatives to react-oidc-context
200 open source apps like react-oidc-context, closest match first.
Top picks
- O
Oidc Client TS
Launchoidc-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 Id
Open source
- S
Spring Addons
LaunchOAuth2 / OIDC for Spring backends of SPAs and mobile apps: the Spring Security beans the official starters leave to you (authorities, CORS, 2xx/401 for fetch, CSRF cookie, validated redirects, logout, one refresh flow at a time), as propert
Open source
- O
Oidc Spa
Launchoidc-spa is an OpenID Connect client library for browser-based single-page apps. It lets you add login without being tied to one identity provider. The site compares it with provider-specific SDKs such as keycloak-js, auth0-spa-js and MSAL.
Open source
- O
Oauth4webapi
Launchoauth4webapi is a low-level client library for OAuth 2 and OpenID Connect that runs in browsers and in other JavaScript runtimes. Instead of a framework plugin, it gives you the building blocks to write your own client: discovery of authori
Open source
- R

react-apple-signin-auth
Launchreact-apple-signin-auth is a React component for Sign in with Apple, built on Apple's official JavaScript SDK. To use it, you need an Apple Developer Program account, an App ID and a Service ID, and a private key generated for the Service I
- R

react-facebook-login
LaunchReact Facebook Login is a React component for adding a Facebook login button to a React app. You install it with yarn or npm, and your application also needs react and react-dom. The README shows a basic button with styling, and a version w
Open source
More like react-oidc-context
About react-oidc-context

react-oidc-context
OpenID Connect & OAuth2 authentication
react-oidc-context is a lightweight authentication library for React single-page applications. It handles OpenID Connect and OAuth 2 sign-in using the oidc-client-ts library and React's context API for state management. You wrap your application in an AuthProvider, configured with your OpenID Connect settings, and the provider holds the user and the user manager and intercepts the redirect parameters after sign-in. Components then call the useAuth hook to read the loading state, whether the user is authenticated and the user object, and to call sign-in, remove-user and sign-out methods. For class components there is a withAuth higher-order component that adds an auth property. Protected routes can be wrapped with withAuthenticationRequired, which sends anonymous visitors to the login page. A callback in the configuration removes the login payload from the URL after a successful sign-in, which the README says is needed so that silent renewal keeps working on refresh. Access tokens can be renewed silently through oidc-client-ts. Other documented patterns include calling a protected API with the access token, adding event listeners through the hook, and automatic sign-in after the tab is reopened. The library is installed with npm or yarn, and it is aimed at teams building single-page apps that need login through an identity provider.
- Price
- Free
- Made by
- pamapa
- Category
- UI Libraries
- Website
- github.com/authts/react-oidc-context












