0.0.6 • Published 12 months ago
@claudebernard/keycloak-js v0.0.6
Custom Keycloak JS
The documentation can be found in the Keycloak documentation.
Why we need a custom Keycloak JS
The official keycloak-js library does not support init Keycloak without refresh_token.
In our case we need to init Keycloak without refresh_token because we doesn't want to redirect user on Keycloak SSO page on first connexion and all page refresh. So we edit the library to support initialization only with a valid access_token, this allow user to not be redirected on Keycloak SSO page until the access_token is expired.
How to use
- Install the library
npm install @claudebernard/keycloak-js
Usage is the same as the official keycloak-js library, you just need to import the library from @claudebernard/keycloak-js
instead of keycloak-js
.