Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Greetings!
I am currently investigating possible ways to tackle a specific use case, using Shopify with the Next.js Commerce integration for building a custom storefront. Right now, their product does not include an option for authenticating using OAuth2 - e.g. Google and Facebook. I have a rough draft of a solution, but still can't imagine the complete flow.
It would go something like this:
Now, one thing needs to be taken into consideration. Before creating a token for a customer, we need to create a new customer, right? And as far as I know, the Shopify mutation requires username and password input. Do you reckon this could render the entire idea useless? And another thing, if the Google info for that customer changes, for example the last name, would that make the generated Multipass invalid -- since a new last name is encoded into it, thus changing the string itself?
Please share your thoughts!
Thanks!