Implementing OTP-based Login in Shopify Hydrogen

Hi Shopify Developer Community,
I’m working on a headless Shopify store using Shopify Hydrogen, and I’m looking to implement an OTP-based login for customer authentication.

Has anyone successfully implemented this or have steps/resources on how to achieve this in Shopify Hydrogen? Specifically, I’m looking for guidance on:
1. How to send the OTP (via email / phone) to the user.
2. How to verify the OTP once the customer submits it.
3. How to integrate this with Shopify’s Storefront API to create a seamless customer experience.
4. Any best practices for managing OTP expiry and retries.
5. How to maintain user session, which api’s to call
I’m open to using third-party services (like Twilio for SMS or an email service) if necessary, but I’m looking for the best way to handle this in the Shopify ecosystem.
Thanks in advance for your help! Looking forward to hearing your suggestions and experiences.
Best,
Rajesh