UNPKG

@shopify/shopify-app-remix

Version:

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

13 lines (10 loc) 510 B
import { createOrLoadOfflineSession } from './create-or-load-offline-session.mjs'; import { ensureOfflineTokenIsNotExpired } from './ensure-offline-token-is-not-expired.mjs'; async function ensureValidOfflineSession(params, shop) { const session = await createOrLoadOfflineSession(params, shop); if (!session) return undefined; return ensureOfflineTokenIsNotExpired(session, params, shop); } export { ensureValidOfflineSession }; //# sourceMappingURL=ensure-valid-offline-session.mjs.map