Skip to main content

Scopes

Contains functions used to manage scopes for your app.

This object is returned on authenticated Admin requests.

Provides utilities that apps can use to manage scopes for the app using the Admin API.

Anchor to query
query
() => Promise<>
required

Queries Shopify to see what scopes have been granted

Anchor to request
request
(scopes: string[]) => Promise<void>
required

Requests the merchant grant the provided scopes

This method performs a redirect to the grant screen.

Anchor to revoke
revoke
(scopes: string[]) => Promise<>
required

Revokes the provided scopes

Warning: This method throws an error if the provided optional scopes contains a required scope.



Was this page helpful?