The product sync is working when merchants have no brands.
Actual behavior
The product sync stalls when merchants have no brands and do not have enough scopes for the GraphQL requests. The error "Could not retrieve the token" appears in the logs.
Steps to reproduce behavior
Create a BigCommerce store with no brands
Install the BigCommerce for WordPress plugin
When generating an API token do not select the "Storefront API tokens" and "Storefront API customer impersonation tokens" OAuth scopes
Expected behavior
The product sync is working when merchants have no brands.
Actual behavior
The product sync stalls when merchants have no brands and do not have enough scopes for the GraphQL requests. The error "Could not retrieve the token" appears in the logs.
Steps to reproduce behavior
Screenshot/Video (if applicable)
Workaround or possible solution