I configured keycloak connection with backend using above data.
Then I decided to protect endpoint with keycloak.protect(). After adding keycloak.protect() I get 403 Access denied. I checked access token and it is not expired.
I am getting access token from @react-keycloak/web by adding provider and then using useKeycloak hook to retrieve keycloak instance ( keycloak.token )