UNPKG

@shopify/shopify-api

Version:

Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks

1 lines 1.02 kB
{"version":3,"file":"index.mjs","sources":["../../../../../../lib/session/index.ts"],"sourcesContent":["import {ConfigInterface} from '../base-types';\n\nimport {decodeSessionToken} from './decode-session-token';\nimport {\n customAppSession,\n getCurrentSessionId,\n getJwtSessionId,\n getOfflineId,\n} from './session-utils';\n\nexport function shopifySession(config: ConfigInterface) {\n return {\n customAppSession: customAppSession(config),\n getCurrentId: getCurrentSessionId(config),\n getOfflineId: getOfflineId(config),\n getJwtSessionId: getJwtSessionId(config),\n decodeSessionToken: decodeSessionToken(config),\n };\n}\n\nexport type ShopifySession = ReturnType<typeof shopifySession>;\n"],"names":[],"mappings":";;;AAUM,SAAU,cAAc,CAAC,MAAuB,EAAA;IACpD,OAAO;AACL,QAAA,gBAAgB,EAAE,gBAAgB,CAAC,MAAM,CAAC;AAC1C,QAAA,YAAY,EAAE,mBAAmB,CAAC,MAAM,CAAC;AACzC,QAAA,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC;AAClC,QAAA,eAAe,EAAE,eAAe,CAAC,MAAM,CAAC;AACxC,QAAA,kBAAkB,EAAE,kBAAkB,CAAC,MAAM,CAAC;KAC/C;AACH;;;;"}