ShopifyCommerceProvider

db · /index·type

Auth and connection configuration for the Shopify commerce integration. Identifies the storefront via domain and storefrontId, carries the Storefront API credentials, and optionally includes the Customer Account API settings required for authenticated storefronts. The secret members (authentication.token, customers.clientSecret) are stored split-out in the Convex shopCredentials table and only re-attached on the server-trusted sensitiveData read.

Properties

authentication
{ customers: { clientId: string; clientSecret: string; id: string }; domain: string; publicToken: string; token: string }
domain
string
id
string
storefrontId
string
type
'shopify'

Example

import type { ShopifyCommerceProvider } from '@nordcom/commerce-db';
function getPublicToken(cp: ShopifyCommerceProvider): string {
    return cp.authentication.publicToken;
}

FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme

Sourceshop.ts:22Edit the JSDoc directly
Metadata@nordcom/commerce-db@0.1.0Open in GitHub ↗

On this page