I recently installed osticket and then installed the 2FA plugin. I set up 2FA with an authenticator app. Once a login is cached, it seems to stop working and gives the error shown below. If I log in an incognito tab, I'm able to authenticate just fine. It's the /scp/login.php that I'm logging into.
I'm running:

I get the error:

Any help would be much appreciated!