commerce
commerce copied to clipboard
Feature: Customer Accounts
The Shopify Storefront API allows for customer authentication and creation. This would provide the headless template with a feature every Shopify Theme has.
Overview
Typical routes on the Shopify theme to be implemented are:
-
/account/register
: form with required fields for thecreateCustomer
mutation. -
/account/login
: login form with required fields for thecustomerAccessTokenCreate
mutation. -
/account/login#recover
: form to send a password reset link with theCustomerRecover
mutation. -
/account/reset
: the URLcustomerRecover
send to the customer with the password reset token to be used with thecustomerReset
mutation. -
/account
: customer portal where customer's can see their information, such as, orders, addresses, and basic information. This would use theCustomer
query to load information and order history. Mutations likecustomerAddressCreate
,customerAddressUpdate
,customerAddressDelete
,customerUpdate
would be implemented here to allow customers to CRUD their addresses.
Reference: Any Shopify Theme Store. See Dawn Demo.
Great overview! Issue #1270 also requested login/register. Hopefully it will get added soon.