How to implement Login using OTP using Storefront/admin API and GraphQL

I implement the customer’s login using email and password but my website has OTP login feature which is enabled from admin settings.

How can i implement same feature in my application using API?

You can look at how shopify hydrogen did it.

https://hydrogen.shopify.dev/

Go to github sourcecode and look at that, there is a package you can use.

Did you figure out any solution?