Interface: InitOptions
Properties
__unstable_twoFactorRetryFn?
optional__unstable_twoFactorRetryFn?: () =>Promise<Session|undefined>
Beta feature - (may change in the future) Middleware function that should return a Session, called when API functions return a 423. 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. Calls that fail while this function is pending share its result, and calls sent before it returned a new session retry with that session instead of calling it again.
Returns
Promise<Session | undefined>
Session
appName?
optionalappName?:string
Merchant application name, optional, but helpful for debugging
appVersion?
optionalappVersion?:string
Merchant application version, optional, but helpful for debugging
loginRetryFn?
optionalloginRetryFn?: () =>Promise<Session|undefined>
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. Calls that fail while this function is pending share its result, and calls sent before it returned a new session retry with that session instead of calling it again.
Returns
Promise<Session | undefined>
Session
storefrontAccessToken?
optionalstorefrontAccessToken?:string
Recharge storefront access token used for Recharge Storefront API access
storeIdentifier?
optionalstoreIdentifier?:string
On Shopify this should be your myshopify.com domain