Skip to main content
Anchor to hydrogenStorefrontCustomerApplicationUrlsReplace

hydrogenStorefrontCustomerApplicationUrlsReplace

mutation

Requires Request must be initiated from the Shopify CLI and user must have full access to apps or access to the Hydrogen channel.

Updates the customer account application URLs for a Hydrogen storefront, configuring the authentication and redirect endpoints used by Shopify's Customer Account API integration. This mutation validates URL formats and security requirements.

For example, when setting up customer login functionality, developers configure the JavaScript origin for client-side authentication, logout redirect URIs for post-signout navigation, and the primary redirect URI for successful authentication flows.

Use hydrogenStorefrontCustomerApplicationUrlsReplace to:

  • Configure customer authentication endpoints
  • Update redirect URLs for login and logout flows
  • Modify JavaScript origins for client-side integration
  • Validate URL security and format requirements

The mutation replaces all existing URLs with the new configuration, ensuring consistent authentication behavior across the storefront. Detailed error reporting helps developers verify the configuration meets Shopify's security standards.

Learn more about Customer Account API integration.

ID!
required

The ID of the storefront.

HydrogenStorefrontCustomerApplicationUrlsReplaceInput!
required

An object of fields to update on the customer oauth application.


Was this section helpful?

Anchor to HydrogenStorefrontCustomerApplicationUrlsReplacePayload returnsHydrogenStorefrontCustomerApplicationUrlsReplacePayload returns

[String!]

List of allowed javaScript url origins.

[String!]

List of allowed urls that can be redirected to post-logout.

[String!]

List of allowed callback urls.

Boolean

Whether the customer application was updated successfully.

[HydrogenStorefrontCustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?