JavaScript: Verify and log in through OTP

Log in a user given a User supplied OTP or TokenHash received through mobile or email.

Parameters