diff --git a/src/utils/keycloak/keycloakOidcClient.js b/src/utils/keycloak/keycloakOidcClient.js index 07d9d85e..3fa98748 100644 --- a/src/utils/keycloak/keycloakOidcClient.js +++ b/src/utils/keycloak/keycloakOidcClient.js @@ -18,7 +18,7 @@ export const createKeycloakOidcClient = async ({ urlPortail, evtUserActivity, }) => { - const keycloakInstance = Keycloak({ url, realm, clientId }); + const keycloakInstance = new Keycloak({ url, realm, clientId }); const isAuthenticated = await keycloakInstance .init({