I'm a htb noob and I had an accidental xsrf attempt while logging in.

Don’t stay idle on the login page or refresh after idling?