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 for the scopes for this app on this shop

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

Requests the merchant to grant the provided scopes for this app on this shop

Warning: This method performs a server-side redirect.

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

Revokes the provided scopes from this app on this shop

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



Was this page helpful?