How to implement OTP service using firebase in ionic angular

I am trying to implement the OTP in ionic angular using the firebase but i couldnt do it.I tried some but didnt work.If anyone implemented or have idea please let me know.Thanks in Advance.