verifyCode() always fails when TwoFactorAuth() is constructed with a too high value. For example with 60 seconds it fails. Maybe you can document this or generate an error while constructing the TwoFactorAuth().