Skip to main content
Anchor to HydrogenStorefrontCustomerUserErrorCode

HydrogenStorefrontCustomerUserErrorCode

enum

Possible error codes that can be returned by HydrogenStorefrontCustomerUserError.

Anchor to CUSTOMER_ACCOUNT_API_APPLICATION_NOT_FOUNDCUSTOMER_ACCOUNT_API_APPLICATION_NOT_FOUND

Customer Account API application not found.

The input value is invalid.

The Regex is invalid.


Was this section helpful?

•OBJECT

Catches validation errors when setting up customer authentication for your Hydrogen storefront, so you can quickly fix configuration issues and get customers logging in smoothly.

For example, when setting invalid redirect URLs or JavaScript origins that don't meet security requirements, this error type captures the specific validation failure with clear guidance for resolution.

Use HydrogenStorefrontCustomerUserError to:

  • Handle customer account configuration errors
  • Display specific validation messages for authentication setup
  • Identify problematic URL or origin configurations
  • Guide developers through Customer Account API requirements

Each error includes the field that failed validation and a descriptive message explaining the specific requirement, making it easier to troubleshoot customer authentication setup.

Learn more about Customer Account API configuration.


Was this section helpful?