Unable to register authy as a 2FA for a user

I am trying to register 2FA for a user using an OTP generated by twilio authy but it always says me Invalid authenticator code. I just tried with keycloak 12.0.4 release.