Pressing browser "Back"-button during login/registration gives "Page expired"

We are currently implementing Keycloak for authentication and user registration. One problem we’ve encountered is that if we follow the below, quite common, flow we will end up on the “Page has expired” page, with options to restart or continue the login process. This doesn’t give a very nice user experience. We assume this is due to the form POST being performed in step 1.

Is this expected or is there anything with our setup that is misconfigured? What can we do to remove the behaviour of the expired page? Any advise or pointers is much welcome!

Flow:

  1. On login page, fill in incorrect credentials and submit
  2. Navigate to either “Forgot password” or “Registration”
  3. Press browser “Back” button
1 Like

I am facing the same issue, Did you find any solution for this scenario ?