I want to implement phone number OTP based login system on shopify store for my customers. Shopify don't have this feature and hence I am planning to make a shopify app for this. I am still unclear how will I bypass shopify's own auth.
Here is the flow I want:
Develop a shopify app which injects page for mobile no and OTP input.
Customer provide mobile no and verify it with OTP.
Check shopify if this user exists or not and create account respectively.
User browse the store in authenticated environment without any password or any other auth.
Guide me how this can be achieved or if it is even possible or not.