Function ensureAuthenticatedAppManagement

  • Ensure that we have a valid session to access the App Management API.

    Parameters

    • scopes: "https://api.shopify.com/auth/organization.apps.manage"[] = []

      Optional array of extra scopes to authenticate with.

    • env: ProcessEnv = process.env

      Optional environment variables to use.

    • options: EnsureAuthenticatedAdditionalOptions = {}

      Optional extra options to use.

    Returns Promise<{
        token: string;
        userId: string;
    }>

    The access token for the App Management API.