@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
16 lines (15 loc) • 758 B
TypeScript
import type { AppConfigV2, ClientApplication } from './client/types';
/**
* Creates your application instance with validator middleware.
* @param config - `apiKey` and `host` are both required.
* @remarks
* Please note that `forceRedirect` only works in production environment (`shopname.myshopify.com/admin`).
* You will need to store `host` during the authentication process and then retrieve it for the code to
* work properly. To learn more about this process, see
* {@link https://help.shopify.com/api/embedded-apps/shop-origin | Getting and storing the shop origin}.
* @public
*/
export declare function createApp(config: AppConfigV2): ClientApplication;
export default createApp;
export * from './MessageTransport';
export * from './client';