-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shop is getting undefined when redirecting to /api/auth?shop=undefined #94
Comments
I'm having the same issue on the latest version
Steps to reproduce:
|
yes older version v1.0.1 works fine @alexissel |
Hi. I'm having the same issue as @alexissel:
Node version: 16.18.1 Packages:
It's great that it works on v1.0.1, but I believe that there are some other gaps there, which have been covered in v1.1.0. So it would be great to have a fix for this redirect after uninstall issue in v1.1.1 as it is a requirement in the current app approval process 😄 |
+1 started to see this as well
|
It seems the backend is only checking for offline tokens when requesting a page which makes use of the In my case (pretty similar to the node app template), the So I see two ways to fix this, either make all backend requests to |
Nice find @FrankHeijden . I tried to debug that before but hard a hard time. From that info, I tried to intercept the middleware for
|
I put the above solution in place and it worked, but this was working before. I'm not sure why it suddenly doesn't work. I didn't upgrade my packages and it went from a working status to a non-working status. |
I am having the same issue. It is happening when the app (using both offline and online access tokens) has already been installed for a shop, and a new user with no session then tries to access the app. Because the app has a valid offline session token, the |
+1 same issue I've seen it occur in both dev (using sqlite session storage) and in prod (using redis session storage). I haven't uninstalled my app on the stores that have the issue, so the cause cannot be related to uninstallation. But the issue does seem to occur when I simply wipe the sessions from session storage (e.g. delete my By referencing the logs that Shopify spits out, the issue does seem to occur somewhere in
|
Why is this still not fixed in |
+1 |
If no shop param is provided and no session is found (e.g., app just uninstalled), then try to get the shop from the token if it's present. If it's there, use it to redirect to auth, which should lead the user back to the app install screen. Fixes #94
Fixed in |
Thanks Kevin! |
This issue still persists in @shopify/shopify-app-express@1.2.2 |
Yes. In @shopify/shopify-app-express@2.0.0 too |
Dear Developers, @mkevinosullivan @cquemin @paulomarg @refactor-this @teddyhwang @ajshepley I am writing to bring to your attention a critical issue that is affecting the performance of the Shopify apps developed using your library. As you may already be aware, there is a bug in your code that needs immediate attention. This issue has caused inconvenience and loss of revenue for many businesses, including small companies and individual developers like myself, who rely on your library to build applications. It is not only frustrating but also damages the reputation of our companies and the trust of our users. I understand that fixing bugs can be a challenging and time-consuming task. However, I implore you to prioritize this issue and provide a resolution as soon as possible. If a quick fix is not feasible, it would be appreciated if you could suggest a temporary solution or workaround to mitigate the impact of the bug on our applications. I am confident that you will address this problem promptly and efficiently, and I appreciate your efforts in ensuring that your library provides a reliable and stable foundation for the development of Shopify apps. Thank you for your attention to this matter. Sincerely, |
Oh, I just had this issue, and I realized that I was not making the frontend request with the hook useAuthenticatedFetch. Using the hook to make the request solved my problem. |
Same issue here. My fail was that when implementing session storage strategy I would return empty session object if session didn't exist instead of Good
Bad
|
Issue summary
when session verification fails then it redirects to
/api/auth
and passes shop in query parameters but here shop is undefined/api/auth?shop=undefined
it doesn't happen on development server but it happens on prod server
followed official doc for fly.io deployment but this error exist
@shopify/shopify-app-*
package and version:Expected behavior
it should redirect to /api/auth?shop=mystore.myshopify.com
Actual behavior
/api/auth?shop=undefined
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: