UNPKG

@shopify/shopify-app-remix

Version:

Shopify Remix - to simplify the building of Shopify Apps with Remix

1 lines 1.52 kB
{"version":3,"file":"factory.mjs","sources":["../../../../../../src/server/authenticate/public/factory.ts"],"sourcesContent":["import {BasicParams} from '../../types';\n\nimport {authenticateCheckoutFactory} from './checkout/authenticate';\nimport {authenticateAppProxyFactory} from './appProxy/authenticate';\nimport {authenticateCustomerAccountFactory} from './customer-account/authenticate';\nimport {AuthenticatePublic} from './types';\nimport {authenticatePOSFactory} from './pos/authenticate';\n\nexport function authenticatePublicFactory(params: BasicParams) {\n const authenticateCheckout = authenticateCheckoutFactory(params);\n const authenticateAppProxy = authenticateAppProxyFactory(params);\n const authenticateCustomerAccount =\n authenticateCustomerAccountFactory(params);\n const authenticatePOS = authenticatePOSFactory(params);\n\n const context: AuthenticatePublic = {\n checkout: authenticateCheckout,\n appProxy: authenticateAppProxy,\n customerAccount: authenticateCustomerAccount,\n pos: authenticatePOS,\n };\n\n return context;\n}\n"],"names":[],"mappings":";;;;;AAQM,SAAU,yBAAyB,CAAC,MAAmB,EAAA;AAC3D,IAAA,MAAM,oBAAoB,GAAG,2BAA2B,CAAC,MAAM,CAAC;AAChE,IAAA,MAAM,oBAAoB,GAAG,2BAA2B,CAAC,MAAM,CAAC;AAChE,IAAA,MAAM,2BAA2B,GAC/B,kCAAkC,CAAC,MAAM,CAAC;AAC5C,IAAA,MAAM,eAAe,GAAG,sBAAsB,CAAC,MAAM,CAAC;AAEtD,IAAA,MAAM,OAAO,GAAuB;AAClC,QAAA,QAAQ,EAAE,oBAAoB;AAC9B,QAAA,QAAQ,EAAE,oBAAoB;AAC9B,QAAA,eAAe,EAAE,2BAA2B;AAC5C,QAAA,GAAG,EAAE,eAAe;KACrB;AAED,IAAA,OAAO,OAAO;AAChB;;;;"}