diff --git a/docs/api-handlers.md b/docs/api-handlers.md index 4435322..c26c4f5 100644 --- a/docs/api-handlers.md +++ b/docs/api-handlers.md @@ -61,6 +61,7 @@ import { VercelAPL } from "./vercel-apl"; export default createAppRegisterHandler({ apl: new VercelAPL(), + allowedSaleorUrls: ["https://your-saleor.saleor.cloud/graphql/"], // optional, see options below }); ``` @@ -69,6 +70,11 @@ Options provided to handler factory ```typescript export type CreateAppRegisterHandlerOptions = { apl: APL; + /** + * Provide your Saleor /graphql/ endpoints (or functions), + * to allow app registration only in allowed Saleor instances. + */ + allowedSaleorUrls?: Array boolean)>; }; ``` @@ -78,4 +84,4 @@ See [APL](./apl.md) for details what is Auth Persistence Layer in Saleor apps App SDK provides a utility that helps building (async) webhook handlers, so app can react on Saleor events. -Read about it [here](./saleor-async-webhook.md). \ No newline at end of file +Read about it [here](./saleor-async-webhook.md).