A client-side JavaScript OpenID Connect library that can be used to secure web applications
npm install @claudebernard/keycloak-jsThe documentation can be found in the Keycloak documentation.
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.
1. Install the library
``bash`
npm install @claudebernard/keycloak-js@claudebernard/keycloak-js
Usage is the same as the official keycloak-js library, you just need to import the library from instead of keycloak-js`.