Hydrogen v2 + Multipass to persist checkout user session and 3rd-party auth via Google Sign in
This article provides a guide on how to implement the Hydrogen Demo Store + Multipass Google Sign in and checkout persistence for Shopify. It includes instructions on how to persist the user session between Hydrogen and the checkout process, as well as how to enable external user authentication through Google Sign in. Please note that this implementation is not official and should be used at your own risk.
To install the Hydrogen Demo Store + Multipass Google Sign in and checkout persistence, follow these steps:
MultipassCheckoutButton component to /app/components/MultipassCheckoutButton.tsx.multipass.tsx helper to /lib/multipass/multipass.tsx.Multipassify class to /lib/multipass/multipassify.server.tsx.app/routes/($lang)/account/__public/login.multipass.tsx.<MulitpassCheckoutButton /> in the <Cart /> component at app/components/Cart.tsx.GoogleSingInButton component to app/components/GoogleLoginButton.tsx.multipass.tsx helper to /lib/multipass/multipass.tsx.Multipassify class to /lib/multipass/multipassify.server.tsx.app/routes/($lang)/account/__public/login.multipass.tsx.app/routes/(%24lang)/account/__public/login.multipass.%24token.tsx.<GoogleSignIn /> in the Google sign in login route (or /app/routes/account/login) in app/components/Cart.tsx.This article provides instructions on how to implement the Hydrogen Demo Store + Multipass Google Sign in and checkout persistence for Shopify. It demonstrates how to persist the user session between Hydrogen and the checkout process, as well as how to enable external user authentication via Google Sign in.