Fails when SHOPIFY_SERVICE_ACCOUNT_TOKEN is set, for commands that can't run with that token.
Service account tokens can't log in as a user or call a store's Admin API, so commands that need either
refuse to run instead of quietly using the person's own login. ensureAuthenticated runs this check before any
login. Commands that run on a login saved by shopify store auth call it before loading that login.
Returns void
Throws
AbortError when SHOPIFY_SERVICE_ACCOUNT_TOKEN is set.
Fails when SHOPIFY_SERVICE_ACCOUNT_TOKEN is set, for commands that can't run with that token.
Service account tokens can't log in as a user or call a store's Admin API, so commands that need either refuse to run instead of quietly using the person's own login.
ensureAuthenticatedruns this check before any login. Commands that run on a login saved byshopify store authcall it before loading that login.