UNPKG

@shopify/app-bridge

Version:

> **Maintenance Mode:** Although apps using this package will continue to function, it is no longer receiving updates. For new projects, please use the [CDN version of App Bridge](https://shopify.dev/docs/api/app-home?accordionItem=getting-started-build-y

20 lines (19 loc) 701 B
import type { ClientApplication } from '../../client'; type FetchOperation = typeof fetch; export interface AuthenticatedFetchOptions { /** * The fetch function to perform the network call. */ fetchOperation?: FetchOperation; /** * The URL to redirect to when the session token is invalid. * If not provided, `requestFailureReauthorizeUrlHeader` will be used. */ reauthorizeUrl?: string; /** * The Header parameter. */ requestFailureReauthorizeUrlHeader: string; } export declare function authenticatedFetch(app: ClientApplication, fetchOperationOrOptions?: FetchOperation | AuthenticatedFetchOptions | undefined): FetchOperation; export {};