Skip to main content

InitOptions

Properties

appName?

appName?: string

Merchant application name, optional, but helpful for debugging


appVersion?

appVersion?: string

Merchant application version, optional, but helpful for debugging


loginRetryFn?

loginRetryFn?: () => Promise< Session >

Middleware function that should return a Session, called when API functions return a 401. This function allows your app to refetch a session, store it by whatever means your app uses for future calls, then return it so the call that failed can be retried.

Returns

Promise< Session >

Session


storeIdentifier?

storeIdentifier?: string

On Shopify this should be your myshopify.com domain


storefrontAccessToken?

storefrontAccessToken?: string

Recharge storefront access token used for Recharge Storefront API access


Generated using typedoc-plugin-markdown and TypeDoc