Skip to content

Login using Email and Password #2359

Closed Answered by blittle
Pankajmehta1998 asked this question in Help
Discussion options

You must be logged in to vote

There are two ways for customers to login to a Hydrogen site.

  1. The new customer account API. This does not use passwords to login. Instead it uses magic links via email, with other auth schemes planned. This is what comes with the new Hydrogen starter template.
  2. The legacy accounts via the Storefront API. This uses email/password to authenticate. But it is deprecated. An example on how to use it is available here: https://github.com/Shopify/hydrogen/tree/main/examples/legacy-customer-account-flow

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by blittle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants