Login customer using mobile and otp on hydrogen store without redirecting user

We are building store on Shopify using Hydrogen on Oxygen. Is there a provision to allow user to login by entering mobile number and otp while staying on the same website. We don’t want users to be redirected to any other website. We are ready to build own OpenID Connect for Shopfiy. However documentation mentions redirect is necessary. It is ridiculous that the login won’t happen on the store without redirecting defeats the whole purpose of PWA site.