Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
82 stars 9 forks source link

APP::ERROR::INVALID_CONFIG: Provided apiKey #250

Open pvkhanh1708 opened 7 months ago

pvkhanh1708 commented 7 months ago

Describe the bug

When I config Shopify App Bridge, I got this error message: "APP::ERROR::INVALID_CONFIG: Provided apiKey ***************************949aa is incorrect. Expecting ***************************9036f

BUT, I make sure that I exactly provide apiKey ***************************9036f

In .env

MIX_SHOPIFY_API_KEY=***************************9036f

In App.tsx

import { Provider } from "@shopify/app-bridge-react"; ... const configAppBridge = { apiKey: process.env.MIX_SHOPIFY_API_KEY, host: window.OT_HOST, forceRedirect: false, }; ... <Provider config={configAppBridge}><Content/></Provider> ...

Contextual information

Packages and versions

Platform

Additional context

How to reslove this error and pass config?

jzazove commented 4 months ago

Are you still having this issue?

avibz1987 commented 3 months ago

Hey, i have the same issue, i notices that there is an extra space but can't tell where it comes from: "APP::ERROR::INVALID_CONFIG: Provided apiKey xxxxxxxxxx is incorrect. Expecting xxxxxx"

jzazove commented 3 months ago

Please update to the latest version of App Bridge: https://shopify.dev/docs/api/app-bridge-library#getting-started