I have used keycloak as a identity provider in my react application. I have installed keycloak react dependency in my react application using npm.
Below are the dependent keycloak react npm modules with version :
"@react-keycloak/web": "2.1.4",
"keycloak-js": "^11.0.2",
I have provided keycloak configurations as below :
const keycloak = new Keycloak({
realm: "temp-local",
url: " http://localhost:8090/auth/",
clientId: "temp-local-client"
});
Everytime when I refresh the page it will refresh again (with callback url) with query parameters state, session_state and code.
For example : When I go to the page : http://localhost:8080/test it will go there but again it will refresh the page with below url.
Sample url : http://localhost:8080/test#state=45ert45-edac92ddbf2a&session_state=45ga97bbfb4-f080cvb65e59b&code=1a1a-4e6e-3fg578-4fg10b-bbafg8-652fg6c44727a4
How to avoid that keycloak refresh? Can anyone have any idea on this?