This library is deprecated and will no longer be maintained or updated.
Instead, it is recommended to use:
react-oidc-context for React SPA projects instead of @react-keycloak/webNextAuth.js for Next.js projects instead of @react-keycloak/ssr

React bindings for Keycloak
React Keycloak for Web requires:
keycloak-js 9.0.2 or lateryarn add @react-keycloak/webor
npm install --save @react-keycloak/webor as a UMD package through unpkg
one for development: https://unpkg.com/@react-keycloak/web@latest/dist/umd/react-keycloak-web.js
one for production: https://unpkg.com/@react-keycloak/web@latest/dist/umd/react-keycloak-web.min.js
See @react-keycloak/web package README for complete documentation.
React Keycloak for SSR frameworks requires:
keycloak-js 9.0.2 or lateryarn add @react-keycloak/ssror
npm install --save @react-keycloak/ssrSee @react-keycloak/ssr package README for complete documentation.
React Keycloak for React Native requires React Native 61.0 or later
To install run
yarn add @react-keycloak/nativeor
npm install --save @react-keycloak/nativeSee @react-keycloak/native package README for complete documentation.
| version | keycloak-js version |
|---|---|
| v2.0.0+ | 9.0.2+ |
| v1.x | >=8.0.2 <9.0.2 |
See @react-keycloak/react-keycloak-examples repository for various demo implementing this library main features.
If you need to connect using a more generic OIDC client instead of keycloak.js, consider using one of the following libraries:
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT