Shopify/shopify-app-bridge

App Bridge - Direct API access - Unable to retrieve token

Closed this issue · 3 comments

I'm an embedded app developer for Abra, and as of this morning, all direct API calls using fetch are failing with the response: "Unable to retrieve token."

Image

No changes were made to our code since yesterday, but we recently updated the Shopify CLI to the latest version.

To Reproduce

Steps to reproduce the behaviour:

  1. Enable direct api access on toml config file
  2. Do any request to shopify graphql api using fetch
  3. See error

Expected behaviour

All GraphQL calls using direct API access should work as expected, as they did previously.

Packages and versions

  • @shopify/app-bridge latest SDK version
  • @shopify/app-bridge-react @ ^4.1.3
  • @shopify/polaris @ ^13.9.0

Platform

  • App: Shopify embedded app in Chrome (Abra promotions)

Additional context

Using next.js and legacy oauth/scopes control.

Please note that we’ve reproduced this issue on the following stores:

  • abra-joao-checkout-extension-preview
  • abra-development-inktuitive-1

Hi @JoaoGabrielAlves,

Thanks for the report! We've identified the issue and are shipping a fix. I will update this issue once it's resolved.

Fix is out on production now. Please let me know if you're still experiencing an issue with this!

Thank you @charlesdobson! Its working.