Hydrogen Storefront Customer Application Urls Replace Payload
Return type for mutation.
Anchor to FieldsFields
- javascriptOrigin ([String!])
- logoutUris ([String!])
- redirectUri ([String!])
- success (Boolean)
- userErrors ([HydrogenStorefrontCustomerUserError!]!)
- 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.
Anchor to Mutations with this payloadMutations with this payload
- hydrogenStorefrontCustomerApplicationUrlsReplace (HydrogenStorefrontCustomerApplicationUrlsReplacePayload)
- Anchor to hydrogenStorefrontCustomerApplicationUrlsReplacehydrogen•mutation
Storefront Customer Application Urls Replace 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.
- 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.
Arguments