@shopify/cli-kit
    Preparing search index...

    Function ensureAuthenticatedAdmin

    • Ensure that we have a valid Admin session for the given store.

      Parameters

      • store: string

        Store fqdn to request auth for.

      • scopes: AdminAPIScope[] = []

        Optional array of extra scopes to authenticate with.

      • options: EnsureAuthenticatedAdditionalOptions = {}

        Optional extra options to use.

      Returns Promise<AdminSession>

      The access token for the Admin API.