Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

getOfflineId expects string but documentation states that it expects object #937

Closed
btomaj opened this issue Jul 6, 2023 · 0 comments · Fixed by #953
Closed

getOfflineId expects string but documentation states that it expects object #937

btomaj opened this issue Jul 6, 2023 · 0 comments · Fixed by #953

Comments

@btomaj
Copy link

btomaj commented Jul 6, 2023

getOfflineId expects string but documentation states that it expects object

export function getOfflineId(config: ConfigInterface) {
  return (shop: string): string => {
    return `offline_${sanitizeShop(config)(shop, true)}`;
  };
}

but documentation says

const offlineSessionId = await shopify.session.getOfflineId({shop});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant