chec / commercejs-nextjs-demo-store

Commerce demo store built for the Jamstack. Built with Commerce.js, Next.js, and can be one-click deployed to Netlify. Includes product catalog, customer login, categories, variants, cart, checkout, payments (Stripe) order confirmation, and printable receipts.
https://commercejs-demo-store.netlify.app/
BSD 3-Clause "New" or "Revised" License
1.07k stars 206 forks source link

[CHEC-1007] Adding login screen #143

Closed kvisca closed 3 years ago

kvisca commented 3 years ago

Adding a simple magic link login screen to the demo store.

Screen Shot 2020-11-15 at 6 27 09 PM

linear[bot] commented 3 years ago
CHEC-1007 Build a login screen and add a button for it somewhere

The login screen only needs to have an "email address" field. Our API will send the customer an email which will allow them to continue logging in. The API call required to power this is: ``` POST /v1/customers/email-token email={email here} base_url=https://commercejs-nextjs-demo-store.vercel.app/customers/login?token={token} ``` ^ An example only, adjust as necessary. Once the user has submitted the login form we'll need to show a message that says something like "If that email address exists in our system, we've just sent you a link to continue logging in! Please check your emails to continue." \--- Devs to make best efforts on the designs, just do whatever looks okay.

kvisca commented 3 years ago

@robbieaverill I've made the requested updates, if you're happy with it I'll squash it down.