Trying to implement OTP login

I’m trying to implement OTP login instead of password but I can’t find the function that logs a user in. The login.js file does a frappe AJAX call without a method on login button click. Can anyone provide me with the login function so that I can tweak it for my need?

Has anybody else implemented this OTP login? If so, please guide.

1 Like

If you’re okay with using OAuth bearer token

Try this

1 Like

Thank you so much! :slight_smile: