2. Automatic session re-entry if still in parameters of old authentication
2FA solutions were used on some servers who wanted extra protection for their moderator accounts, especially on offline/cracked servers, or servers with a history of staff account breaches. My 2FA plugins were very simple systems where if a player were to join and was in a demographic where they'd need 2FA (has a certain permission etc), they wouldn't be able to do anything until they'd created an Authy code account and validated a code successfully. This meant that to log into the network using one of these accounts, you had to have the moderators phone, which would make it very difficult for someone compromising the account to actually log in to abuse it. As well as being given a type-in code for Authy or Google Authenticator, in most installations, the players were given a map in their hands with a QR code to automatically add the 2FA account to their authenticator.
Most of the servers implemented sessions for their moderators so once they joined shortly after validating previously, they wouldn't need to validate another 2FA code again for a little while and would be allowed in automatically. Things that would invalidate a session and require a new 2FA code could have been 24-hours between the last successful code, a sudden IP change from the last login, changing to a server using a different authorisation server or having a session manually invalidated by an admin.
Management
This is an example of a small admin panel made for a couple of installations of this system. It worked with a version with an authorisation server mode. This meant that you could set certain servers to expect codes from different accounts depending on which server was asking. In the example you see here, the player was a Developer and so had to validate as a 'staff' member in normal servers. They also had servers in 'dev' and 'support', which meant that if the person entered the development or support server respectively, they'd be promoted to sign-up or find a code for a different account.