Function ensureAuthenticatedAdminAsApp

  • Ensure that we have a valid Admin session for the given store, with access on behalf of the app.

    See ensureAuthenticatedAdmin for access on behalf of a user.

    Parameters

    • storeFqdn: string

      Store fqdn to request auth for.

    • clientId: string

      Client ID of the app.

    • clientSecret: string

      Client secret of the app.

    Returns Promise<AdminSession>

    The access token for the Admin API.