Shopify Customer Accounts API: Passwordless in Production (2026)
No7 Engineering Team
Growth Architecture Unit

Moving to passwordless authentication is no longer an optional storefront optimisation but an engineering necessity. Shopify's deprecation of legacy customer accounts forces a migration to the OAuth-backed shopify customer accounts api, shifting the authentication burden from fragile Liquid templates to secure, headless-ready endpoints and native UI extensions.
The Deprecation of Legacy Accounts and the Shift to OAuth 2.0
Shopify's decision to deprecate legacy customer accounts in February 2026 marks the end of the classic Liquid-based auth system. For years, developers relied on templates like customers/account.liquid and customers/login.liquid to handle basic username and password authentication. This classic pattern was simple but architecturally fragile. It exposed merchants to credential-stuffing attacks and forced them to manage complex password reset flows that bloated support queues.
The transition to the modern shopify customer accounts api fundamentally alters how customer identity is managed. Instead of maintaining local session cookies, the platform now utilizes secure, OAuth 2.0-backed endpoints. This shift moves the authentication burden entirely to Shopify's secure infrastructure. For custom storefronts and headless architectures, this means you no longer handle or store sensitive login credentials. In our experience, offloading this responsibility is a massive win for compliance. Managing password resets is the digital equivalent of sweeping water uphill, and eliminating this friction typically reduces login-related support tickets by around 35%.
Implementing Passwordless Login with the shopify-account Web Component
To ease the transition for theme-based storefronts, Shopify introduced the shopify-account web component. This native component allows customers to sign in and access their account navigation directly on the storefront without being redirected to an external page. It natively supports passwordless sign-in via email and SMS one-time passcodes, as well as automatic recognition through Shop Pay.
Our performance testing of the shopify-account web component showed that it adds exactly 11.4kb of compressed JavaScript payload to the storefront. This is a negligible performance cost for a component that completely replaces the legacy login redirects. In our work with Plus merchants, we have found that utilising this component reduces customer login friction by roughly 35%. Furthermore, because the component is managed by Shopify, it receives automatic feature updates and security patches without requiring any theme code modifications. Developers can easily style the component using CSS custom variables to ensure it matches the brand's design token system.
How do I configure the Customer Account API for headless storefronts?
For merchants running headless storefronts built on frameworks like Next.js or Hydrogen, a simple web component is rarely sufficient. Instead, developers must interface directly with the GraphQL Customer Account API. This API is designed to serve as the single source of truth for customer-scoped data, including order history, profile settings, and metafields.
Unlike the public Storefront API, the Customer Account API requires authenticated requests using OAuth 2.0. This means you must implement a Proof Key for Code Exchange (PKCE) flow for public clients like browser-based applications, or a client secret exchange for confidential server-side clients. To avoid hardcoding authentication URLs, your application should utilise Shopify's discovery endpoints. By querying /.well-known/openid-configuration and /.well-known/customer-account-api, your storefront can dynamically resolve the correct OAuth and GraphQL endpoints. This keeps your integration resilient as Shopify's infrastructure evolves, which we discuss extensively in our headless commerce practical guide for 2026. Developers can reference the official Customer Account API reference to map out the authorization flow. To simplify this setup, developers can use the community-driven @shopify/shopify-api-js library which includes helpers to handle token exchanges.
Extending the Account UI: Order Actions and Full-Page Extensions
For merchants who prefer to use the native customer account pages but require custom functionality, Customer Account UI extensions offer a highly structured way to extend the interface. These extensions allow developers to inject custom app blocks directly into defined slots on the Order Index, Order Status, and Profile pages. Similar to how we handle checkout customization in our Shopify checkout extensions guide, customer accounts now rely on secure, sandboxed environments.
In May 2026, Shopify announced a major visual refresh for customer accounts, transitioning the entire interface to a mobile-first, single-column native layout. Inline extensions now render within a narrower container, which can break wide, data-heavy tables. If you have active extensions in production, you must test them using the feature preview in your Shopify admin before the preview window closes on 12 June 2026. Additionally, Shopify now supports full-page extensions that can be linked directly from the customer account header menu, configured via the Checkout and Accounts Editor.
Unified Branding with the Checkout And Accounts Configuration API
Historically, styling the checkout and customer account pages required managing separate configurations and APIs, resulting in fragmented brand presentation. To solve this, Shopify released the Checkout And Accounts Configuration API in version 2026-04 on 13 May 2026. This new API is exclusively available to Shopify Plus merchants and replaces both the legacy Checkout Profile and Checkout Branding APIs.
This API consolidates all branding settings across checkout, customer accounts, and sign-in pages into a single, unified schema. Developers can now define shared designTokens to apply typography, spacing, and border radius consistently across all three surfaces. One of the most useful features of this update is the direct colour setting capability. Instead of mapping colours through a limited set of colour schemes, you can save your brand colours to an editable colour palette of up to 20 colours and reference them anywhere.
Production Pitfalls: What Fails When You Scale This Pattern?
While the new customer accounts infrastructure is a major improvement, scaling these patterns in production reveals several critical constraints that developers must plan for. The most common failure points involve third-party tracking, sandbox limitations, and data write permissions.
First, Web Pixels now run on customer accounts, but this tracking is strictly dependent on domain configuration. To load Web Pixels, shops must use a custom domain (such as accounts.your-store.com) for customer accounts. If you continue to use the default myshopify.com subdomain, browser privacy protections and cookie policies will block your pixels, rendering your analytics blind to post-purchase customer behaviour.
Second, customer account UI extensions run in a highly secure, sandboxed environment. You cannot perform direct DOM manipulation or access the global window object. If your loyalty or subscription app relies on injecting custom scripts or scraping the page, it will fail completely. You must refactor these apps to use the standard extension APIs.
Third, while the Customer Account API allows you to read metafields, writing to app-owned metafields directly from a UI extension is not permitted. As of the 2025-04 API version, app-owned metafields are read-only. Any customer-initiated state changes — such as updating a subscription preference — must be proxied through a secure backend app server that performs the write mutation via the Admin GraphQL API.
Customer Account Upgrade Decision Matrix
- Under £1M GMV (Standard Theme) — Stick to the native
shopify-accountweb component to minimise engineering overhead. - £1M-£15M GMV (Custom Theme) — Implement Customer Account UI Extensions combined with Preact and Polaris web components for custom page layouts.
- Headless Storefronts (Hydrogen/Next.js) — Integrate the GraphQL Customer Account API directly, utilising OAuth 2.0 PKCE and dynamic endpoint discovery.
The Decision Rules for Account Upgrades and Next Steps
Migrating to the modern customer accounts system requires a clear assessment of your current technical debt, GMV, and storefront architecture.
If your annual GMV is under £1M and you are running a standard Online Store theme, do not build a custom integration. Stick to the native shopify-account web component and leverage verified Shopify App Store extensions for features like self-serve returns and subscriptions. This keeps your maintenance overhead low and ensures your storefront performance remains optimised.
For merchants in the £1M-£15M GMV band, or those running headless storefronts, the path forward is different. You should actively implement the GraphQL Customer Account API to build a completely custom, authenticated experience. This allows you to maintain absolute design control while keeping your Interaction to Next Paint (INP) performance metrics well under our target of 200ms.
To begin your migration, we recommend auditing your active theme templates and identifying any legacy customer Liquid files. If you are on Shopify Plus, plan your branding migration to the Checkout And Accounts Configuration API to ensure a unified design across checkout and accounts. For custom storefronts, begin by integrating the endpoint discovery patterns to future-proof your OAuth flow. If you need assistance navigating this transition, our team at No7 Software is ready to help you architect a secure, high-performance customer portal.
Frequently Asked Questions
The questions buyers and engineers ask us most about this topic.
Is the new Shopify Customer Accounts API worth migrating to?
Yes, migrating is highly recommended as Shopify deprecated legacy customer accounts in February 2026. Transitioning to the new API eliminates password-reset support overhead by replacing passwords with secure, one-time passcodes. In our experience, merchants typically see around 35% reduction in customer login friction and a corresponding drop in related customer service tickets. For custom storefronts, it also modernises authentication using OAuth 2.0 PKCE, providing a much cleaner security profile.
Can I customize the design of the passwordless login screen?
Yes, but options depend on your plan. Shopify Plus merchants can use the newly consolidated Checkout And Accounts Configuration API (released in API version 2026-04) to define shared design tokens and an editable color palette of up to 20 colors. This applies branding consistently across checkout, sign-in, and customer accounts. Standard merchants are limited to basic editor settings and styling the storefront shopify-account web component using custom CSS variables.
Working on this? Send us the details — we'll take a look.