When using below API
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2024-07/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "query { orders(first: 10) { edges { node { id } } } }"
}'
With the access_token given by oauth/callback by following
const permissionUrl = `https://${shopOrigin}/admin/oauth/authorize?client_id=${apiKey}&scope=${[
"read_orders",
"read_all_orders",
].join(",")}&redirect_uri=${redirectUri}`;
Still while trying to fetch anything it ask for username and password.
The following error comes:
"errors": "[API] Invalid API key or access token (unrecognized login or wrong password)"
Everything was working fine, nothing changed.
