
Description
redux-oidc is a package for managing OpenID Connect authentication in React and Redux apps. It wraps the oidc-client-js library in Redux actions and reducers, so sign-in state can live in your store. The package handles the OpenID Connect implicit flow and the authorization code flow, letting a Redux app authenticate with an external OIDC provider. It has several parts: a CallbackComponent that processes the sign-in callback from the provider, a SignoutCallbackComponent for the sign-out callback, reducers and actions for OIDC events, and helpers that create and manage the oidc-client-js library. Installation is through npm, and oidc-client is needed as a peer dependency. Immutable.js is an optional peer dependency. The README says a babel-polyfill is required in your build for the package to work. Version 4 is marked as a breaking change because immutable is no longer a dependency, and the README links the version 3 docs, covering the API, actions and an example app. Version 2 is deprecated, and its information is in the wiki. The README also notes the package does not fully support React Native apps. It suits React and Redux developers who need OpenID Connect sign-in.…
Highlights
- OpenID Connect sign-in for Redux apps
- Built on oidc-client-js
- Implicit and authorization code flows
- Callback components for sign-in and sign-out
- Reducers and actions for OIDC events
Ratings & Reviews
No ratings yet
Be the first to rate redux-oidc.
People also visit

react-simple-oauth2-login
A React Component for OAuth2 Login - adapted from react-github-login
Express Openid Connect
An Express.js middleware to protect OpenID Connect web applications

auth0-react
Adding Auth0 login, logout, protected routes, or user sessions to a React SPA
redux-oidc FAQ
What does redux-oidc do?
It manages OpenID Connect authentication in React and Redux apps by wrapping oidc-client-js in Redux actions and reducers.
How do I install it?
Run npm install --save redux-oidc, and install oidc-client as a peer dependency.
Does it support React Native?
The README says it does not fully support React Native apps.
What changed in version 4?
Immutable is no longer a dependency, which the README marks as a breaking change.
Is there a sample app?
Yes. The README links a sample application that uses the package.
What are the best redux-oidc alternatives?
Popular alternatives to redux-oidc include react-oidc-context, @react-oauth/google and react-simple-oauth2-login. See all redux-oidc alternatives











