Weaverse LogoWeaverse
All Articles
Paul Phan
2 mins read

Migrating from Legacy Customer Accounts in Shopify

Shopify deprecated legacy customer accounts. Complete migration guide for theme devs, app devs, and Hydrogen storefronts. Deadline TBA 2026.
Migrating from Legacy Customer Accounts in Shopify
Table of Contents

For Theme Developers

Remove Legacy Liquid Files

Migrating from legacy customer accounts to modern account flows
Migrating from legacy customer accounts to modern account flows

Delete these files from your theme:

templates/customers/login.liquid
templates/customers/register.liquid
templates/customers/account.liquid

Use the New Web Component

<!-- Replace legacy login forms with: -->
<shopify-account></shopify-account>

The shopify-account web component handles:

  • Login/register flows
  • Password reset
  • Account management
  • Multi-factor authentication

Migration checklist and phased rollout planning
Migration checklist and phased rollout planning

For App Developers

Use Customer Account UI Extensions

If your app interacts with customer accounts, migrate to UI extensions:

// extension.toml
[[extensions.targeting]]
target = "customer-account.profile.block-render"
// React extension
export default function ProfileBlock() {
const { customer } = useApi()
return (
<BlockStack>
<Text>Loyalty Points: {customer.metafields.loyalty.points}</Text>
</BlockStack>
)
}

Stats: 800+ apps already migrated. Don't get left behind.

For Custom Storefronts (Hydrogen)

Use Customer Account API

import { useCustomerAccount } from '@shopify/hydrogen'
export function AccountPage() {
const { customer, accessToken, logout } = useCustomerAccount()
if (!customer) {
return <LoginButton />
}
return (
<div>
<h1>Welcome, {customer.firstName}</h1>
<button onClick={logout}>Sign out</button>
</div>
)
}

Migration Steps

  1. Update to Hydrogen 2026.x (includes Customer Account API)
  2. Replace legacy auth flows with useCustomerAccount hook
  3. Test OAuth flow with new customer accounts
  4. Remove legacy session handling code

Why Migrate?

FeatureLegacyNew
MFAManualBuilt-in
PasswordlessNoYes
Single sign-onLimitedFull OAuth
Session securityBasicEnhanced
Mobile experiencePoorNative

Checklist

  • Audit themes for legacy customer templates
  • Replace forms with shopify-account component
  • Update apps to use UI extensions
  • Migrate Hydrogen to Customer Account API
  • Test all auth flows
  • Remove legacy session code

Need help migrating? Weaverse can modernize your storefront in days, not months.

Reactions

Like
Love
Celebrate
Insightful
Cool!
Thinking

Join the Discussion

Never miss an update

Subscribe to get the latest insights, tutorials, and best practices for building high-performance headless stores delivered to your inbox.

Join the community of developers building with Weaverse.