How to make an otp(one time password) app like WhatsApp

I want to authenticate users using firebase phone authentication by sms code so the users will be logged in always, I want to know how I can achieve this in ionic3

as of my knowledge… we can use accountkit for this OTP and still the OTP using firebase is not yet released fully…