discoverAccountUrl
discoverAccountUrl(
shopDomain):Promise<string|null>
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/customer/account-url.d.ts:21
Discover + derive the portal URL for a shop. Memoized upstream (the
discovery fetches themselves are memoized per domain). Never throws: a
failed discovery or an underivable shape returns null - the caller falls
back to requiring customer-account-url. Tries the OpenID configuration
first (the document the login flow needs anyway), then the Customer Account
API document.
Parameters
Section titled “Parameters”shopDomain
Section titled “shopDomain”string
Returns
Section titled “Returns”Promise<string | null>