Login Persist in checkout page #2426
-
Hi, i am logged in in my hydrogen js application using custom way: using username and password. I want to maintain user logged in state in checkout page. I am logged in my application but in my checkout page, i need to login again. I am using the default checkout page which is provided by shopify. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Are you logging in via the storefront/admin API? According to Shopify the Customer Account API was created to solve this exact problem (without multipass) and it has worked flawlessly for me. But you can't use email/password, you can only use passwordless
|
Beta Was this translation helpful? Give feedback.
Hi @Pankajmehta1998,
With the traditional customer accounts, the only way to persist the session from Hydrogen (or any other headless framework) to checkout is by using
multipass
.We have a complete example with instructions multipass
As @toadums highlighted, if using the new Customer Accounts you would not need multipass, but then you would be limited by the Customer Account customization options as of today.
hope that clarifies this issue