Configuring KeyCloak with React

Hi,

I am trying to setup a Keycloak based authentication for our React app.

I have come across the following keycloak-js example. The repo contains static html pages

Gitrepo with example: GitHub - KernelFrenzy/react-keycloak: Working React Keycloak example

I could click on the following login page and was successfully logged in.

But after getting redirected to the home page, I am seeing that authentication is not successful. When I try to click on the login button to try a second login, I get the following redirects but I was never redirected to keycloak.

Not sure if anyone has come across such issue using the keycloak-js library.

Make sure the version of the keycloak-js library the example is using is the same version of the Keycloak server you are using.