You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
Hello developers! I'm trying to get a React component tested, but I'm having this error: authClient has not been assigned to ReactKeycloakProvider. I think it's related to new versions of react-keycloak, based on some answers on SO. Any help is appreciated. Here's what I have:
App.tsx file
<ReactKeycloakProvider
initOptions={initOptions}
authClient={keycloak}
>
<BrowserRouter>
// code here
</BrowserRouter>
</ReactKeycloakProvider>
PS 2: I've tried with a ReactKeycloakProvider (based on the second link from SO) but without success, it seems the new version is asking for types that cannot be found.
Sorry for the long question. Thanks in advance fellows!
More info:
React: ^18.2.0
@react-keycloak/web: ^3.4.0
keycloak-js: ^19.0.3
jest: ^29.0.0
Operational System: GNU Linux Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
Hello developers! I'm trying to get a React component tested, but I'm having this error:
authClient has not been assigned to ReactKeycloakProvider
. I think it's related to new versions of react-keycloak, based on some answers on SO. Any help is appreciated. Here's what I have:App.tsx
fileHeader.tsx
file:Header.test.tsx
file:MockKeycloak.tsx
file:PS: this code is based on two questions from Stackoverflow, but from older versions:
PS 2: I've tried with a
ReactKeycloakProvider
(based on the second link from SO) but without success, it seems the new version is asking for types that cannot be found.Sorry for the long question. Thanks in advance fellows!
More info:
The text was updated successfully, but these errors were encountered: