final public static function isOtpTokenRecent () : bool
	{
		$maxElapsed = 60; // 1 min
		if (isset($_SESSION['otp_token_time'])) {
			$storedTime = $_SESSION['otp_token_time'];
			return ($storedTime + $maxElapsed) >= time();
		} else {
			return FALSE;
		}
	}
final public static function isOtpTokenRecent () : bool
	{
		$maxElapsed = 60; // 1 min
		if (isset($_SESSION['otp_token_time'])) {
			$storedTime = $_SESSION['otp_token_time'];
			return ($storedTime + $maxElapsed) >= time();
		} else {
			return FALSE;
		}
	}
final public static function isOtpTokenRecent ( ) : bool { $ maxElapsed = 60 ; // 1 min if ( isset ( $ _SESSION [ 'otp_token_time' ] ) ) { $ storedTime = $ _SESSION [ 'otp_token_time' ] ; return ( $ storedTime + $ maxElapsed ) >= time ( ) ; } else { return FALSE ; } }
Checks if user OTP token is recent...
@return bool
Checks if user OTP token is recent ...