UNPKG

@shopify/shopify-app-remix

Version:

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

25 lines (23 loc) 590 B
const REVOKE_SCOPE_MUTATION = `#graphql mutation AppRevokeAccessScopes($scopes: [String!]!) { appRevokeAccessScopes(scopes: $scopes){ revoked { handle } userErrors { field message } } }`; async function revokeScopes(admin, scopes) { const revokeScopesResult = await admin.graphql(REVOKE_SCOPE_MUTATION, { variables: { scopes, }, }); const resultContent = await revokeScopesResult.json(); return resultContent.data.appRevokeAccessScopes; } export { revokeScopes }; //# sourceMappingURL=revoke-scopes.mjs.map