Closed ironda2020 closed 1 year ago
if i go back to 4.1.4 everything works fine but the shopify partner informs me that: My app is using an older version of either the shopify_app gem or @shopify/koa-shopify-auth library that has called the deprecated Embedded App SDK (EASDK) within the last 10 days. You must update this app to use either shopify_app [v18.1.1] (https://github.com/Shopify/shopify_app/blob/master/docs/Upgrading.md) or @shopify/koa-shopify-auth [v5.0.3](https://github.com/Shopify/koa-shopify-auth/blob/master/CHANGELOG.md). Updating will replace these EASDK calls with App Bridge.
I think it's due to this change: [5.0.0] - 2022-02-24 :[breaking] Upgraded @shopify/shopify-api version see https://github.com/Shopify/koa-shopify-auth/blob/master/CHANGELOG.md Any ideas?
I'm not getting the same exact error but on my implementation I saw that using Context on this line returns an empty string despite using the Shopify.Context.initialize command. It looks like the koa object uses a different context object...
Using shopify-api 2.1.0 koa-shopify-auth 5.0.3
I'm constantly running into Invalid OAuth callback
since I upgraded to 5.0.3
when I'm trying to install app locally on my development store.
@ironda2020 I am also facing the same issue that you are mentioned above. Any solution you find out instead of switch back to previous 4.1.4 version. I have also find another issue is we need to use add handlers to register webhooks but in 4.1.4 was not required to addhandlers to register webhooks. Please help me.
Hi @Asadmasood195 no solution for the moment! I returned back to 4.1.4 version while waiting for the people who made this update to give us a feedback. Thank you all
I believe you see following warning in your partner dashboard but despite reverted to older version to stay operational.
Yes exactly @pratiknikam
Same here. Switched to 5.0.3 & started having issues with the uninstall webhook as well as general oAuth process. I've reverted back to v4.1.2 for time being while I figure out how to be operational with 5.0.3.
Same wasted the whole day trying to debug, finally switching back to 4.1.5. If it helps anyone my nextjs version is 11.1.2 and webpack is 4.44.1
I was able to fix the uninstall webhook issue I was facing and currently am operational with 5.03. If you're having a webhook issue, make sure the below code is added above app.prepare() in server.jsShopify.Webhooks.Registry.addHandler("APP_UNINSTALLED", { path: "/webhooks", webhookHandler: async (topic, shop, body) => delete ACTIVE_SHOPIFY_SHOPS[shop], });
Hi does anyone have any news on this problem?
Any updates? Running into the Invalid OAuth callback
issue as well since updating to 5.0.3.
Note that this repo is no longer maintained and this issue will not be reviewed. Prefer the official JavaScript API library. If you still want to use Koa, see simple-koa-shopify-auth for a potential community solution.
Issue summary
after updating koa-shopify-auth from 4.1.4 to 5.0.3 my custom session does not work anymore
Shopify.Context.initialize({ API_KEY: process.env.SHOPIFY_API_KEY, API_SECRET_KEY: process.env.SHOPIFY_API_SECRET, SCOPES: process.env.SHOPIFY_API_SCOPES.split(","), HOST_NAME: process.env.HOST.replace(/https:\/\/|\/$/g, ""), API_VERSION: process.env.API_VERSION, IS_EMBEDDED_APP: true, SESSION_STORAGE: new Shopify.Session.CustomSessionStorage( storeCallBack, loadCallBack, deleteCallBack ), });
Expected behavior
my custom session should still work fine
Actual behavior
I get this error:
Steps to reproduce the problem