- Log in a user.
- Go to a page with a form.
- Open a new tab and log out the user.
- Go back to previous tab and submit form.
- It throws InvalidAuthenticityToken before getting to my login code.
I need to redirect the user to a log in screen. What’s the best way to
capture this and handle this?