This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
Replies: 2 comments
-
Had earlier posted in Q&A of keycloak too : keycloak/keycloak#11409 |
Beta Was this translation helpful? Give feedback.
0 replies
-
same issue #191 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using keycloak-js & @react-keycloak/web packages in my react app to implement keycloak.
Below is the basic wrapper :
It works fine, within App Component I am utilizing the values keycloak & initialized to either to show loader, or routes, but the App component is rendered when keycloak is initialized properly provided the keyclaok server is up and running and we don't have any network issue:
const { keycloak, initialized } = useKeycloak();
I am trying to find a way if we can render the App Component even if keycloak server or network has issues at least in the dev environment. I tried the naïve way, conditionally rendering with or without the ReactKeycloakProvider but that would throw error where ever I am using hook useKeycloak as the context will be missing.
Have checked options under https://www.keycloak.org/docs/latest/securing_apps/index.html#javascript-adapter-reference
Beta Was this translation helpful? Give feedback.
All reactions