hydrogen Storefront Customer Application Urls Replace
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 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.
Arguments
- Anchor to storefrontIdstorefront•ID!
Id required The ID of the storefront.
- Anchor to urlsReplaceInputurls•Hydrogen
Replace Input Storefront Customer Application Urls Replace Input! required An object of fields to update on the customer oauth application.
Anchor to HydrogenStorefrontCustomerApplicationUrlsReplacePayload returnsHydrogen Storefront Customer Application Urls Replace Payload returns
- Anchor to javascriptOriginjavascript•[String!]
Origin List of allowed javaScript url origins.
- Anchor to logoutUrislogout•[String!]
Uris List of allowed urls that can be redirected to post-logout.
- Anchor to redirectUriredirect•[String!]
Uri List of allowed callback urls.
- Anchor to successsuccess•Boolean
Whether the customer application was updated successfully.
- Anchor to userErrorsuser•[Hydrogen
Errors Storefront Customer User Error!]! non-null The list of errors that occurred from executing the mutation.