code: public boolean validSecondFactor(String secret, String number) {
          Objects.requireNonNull(secret, Required.SECRET.toString());
          Objects.requireNonNull(number, Required.TOTP.toString());
          
          return TotpUtils.verifiedTotp(secret, number);
      }
docs: Checks if a given number for 2FA is valid for the given secret
  
  @param secret The plaintext secret to use for checking
  @param number The number entered by the user
  @return True if number is valid, false otherwise