Questions and discussions about using the Shopify CLI and Shopify-built libraries.
After updating shopify-koa-auth, my embeded app url keep redirecting to https://admin/oauth/authorize?.... without the shop name, I installed this through my test-app and test on the development store feature in shopify partners.
This is my ctx data returned after auth.
{ request:
{ method: 'GET',
url:
'/auth/callback?code=4e8f1f9e1c7ff4fdb8bcd1758e76b0cd&hmac=de0658406df4b5627a1f50a636d356ec0a476aadc8fa90b42c8ec32614a3edce&host=aHVlLWFwcHMubXlzaG9waWZ5LmNv
bS9hZG1pbg&shop=hue-apps.myshopify.com&state=914481554906000×tamp=1646219758',
header:
{ host: '31b6-60-52-154-85.ngrok.io',
'user-agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36',
accept:
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'en-US,en;q=0.9',
cookie:
'shopifyTestCookie=1; shopOrigin=hue-apps.myshopify.com; shopOrigin.sig=la4yNcfX11Og3dTgMm4EjHEvq9E; shopify_app_session=32b4f6b1-1d68-4b0a-ad4b-55d7950b4
1f0; shopify_app_session.sig=OJE7c3hdbgv5pyoajrOeP97plaQ',
dnt: '1',
referer: 'https://31b6-60-52-154-85.ngrok.io/',
'sec-ch-ua':
'" Not A;Brand";v="99", "Chromium";v="98", "Google Chrome";v="98"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'cross-site',
'upgrade-insecure-requests': '1',
'x-forwarded-for': '60.52.154.85',
'x-forwarded-proto': 'https' } },
response:
{ status: 404,
message: 'Not Found',
header: [Object: null prototype] { 'set-cookie': [Array] } },
app: { subdomainOffset: 2, proxy: false, env: 'development' },
originalUrl:
'/auth/callback?code=4e8f1f9e1c7ff4fdb8bcd1758e76b0cd&hmac=de0658406df4b5627a1f50a636d356ec0a476aadc8fa90b42c8ec32614a3edce&host=aHVlLWFwcHMubXlzaG9waWZ5LmNvbS9
hZG1pbg&shop=hue-apps.myshopify.com&state=914481554906000×tamp=1646219758',
req: '<original node req>',
res: '<original node res>',
socket: '<original node socket>' }
@Iciren did you resolved this problem? I have the same issue and I am looking for a solution.
I believe I did, but cant remember what I did. Earlier this year, I eventually rebuilt my app using the latest shopify flow through their node template here https://shopify.dev/docs/apps/getting-started/create as shopify-koa is obsolete and no longer support latest version of shopify api