Look into why TCP in Firefox breaks local development
Setting network.cookie.cookieBehavior
to 5 (now the default) logs you out automatically after some seconds (likely the keycloak iframe doesn't get access to the keycloak cookies, and that iframe gets checked every few seconds). Ideally developers shouldn't need change this to get things to work.