--- title: HydrogenStorefrontCustomerUserErrorCode - GraphQL Admin description: >- Possible error codes that can be returned by `HydrogenStorefrontCustomerUserError`. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/enums/HydrogenStorefrontCustomerUserErrorCode md: >- https://shopify.dev/docs/api/admin-graphql/unstable/enums/HydrogenStorefrontCustomerUserErrorCode.md --- # Hydrogen​Storefront​Customer​User​Error​Code enum Possible error codes that can be returned by `HydrogenStorefrontCustomerUserError`. ## Valid values * CUSTOMER\_​ACCOUNT\_​API\_​APPLICATION\_​NOT\_​FOUND Customer Account API application not found. * INVALID The input value is invalid. * REGEX\_​INVALID The Regex is invalid. *** ## Fields * [Hydrogen​Storefront​Customer​User​Error.code](https://shopify.dev/docs/api/admin-graphql/unstable/objects/HydrogenStorefrontCustomerUserError#field-HydrogenStorefrontCustomerUserError.fields.code) 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](https://shopify.dev/docs/storefronts/headless/building-with-the-customer-account-api/getting-started). *** ## Map ### Fields with this enum * <-|[Hydrogen​Storefront​Customer​User​Error.code](https://shopify.dev/docs/api/admin-graphql/unstable/objects/HydrogenStorefrontCustomerUserError#field-HydrogenStorefrontCustomerUserError.fields.code)