Interface: InitOptions
Properties
__unstable_twoFactorRetryFn()?
optional__unstable_twoFactorRetryFn: () =>Promise<Session>
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.
Returns
Promise<Session>
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>
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?
optionalstoreIdentifier:string
On Shopify this should be your myshopify.com domain
storefrontAccessToken?
optionalstorefrontAccessToken:string
Recharge storefront access token used for Recharge Storefront API access