-
Notifications
You must be signed in to change notification settings - Fork 106
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
afterAuth not run when installing in Remix App #674
Comments
Also experiencing this |
fwiw, I'm seeing this being logged if I set logger: { level: LogSeverity.Debug } [shopify-app/DEBUG] App is not embedded, redirecting to Shopify | {shop:{redacted}.myshopify.com} But the app IS embedded |
I ran across this issue, this whole product is just unfinished and buggy unfortunately. Every app we develop, we run into issues directly related to the framework Shopify is suggesting to use... super frustrating. In this case, I decided to spin up a new app just to see if that would resolve the issue, via I then went onto the existing app's configuration page in the Partners portal, and compared it to the new app that was just setup. I noticed the old app had no scopes section in the partners page, the new app did. So something has been changed along the way, unsure what. However, creating a new app did resolve the issue. Additionally, the root issue appears to be the installation URL provided under Distribution, did not end up containing a So, try creating a new app. |
I'm also experiencing this issue :( EDIT: ok turns out I had to delete my local sqlite db and delete the session. Afterwards, the |
This saved my day! |
We're labeling this issue as stale because there hasn't been any activity on it for 60 days. While the issue will stay open and we hope to resolve it, this helps us prioritize community requests. You can add a comment to remove the label if it's still relevant, and we can re-evaluate it. |
Hi everyone, I encountered the same issue where the afterAuth callback wasn't running when installing the app. In my case, the problem was related to session saved in the db. Here's what I found:
webhooks.jsx switch (topic) {
case "APP_UNINSTALLED":
if (session) {
await db.session.deleteMany({ where: { shop } }); // This line removes the session from db
}
break; After making this change, the afterAuth callback ran as expected after the app was installed. I hope this helps others facing the same issue! |
Issue summary
"@shopify/shopify-app-remix": "^2.3.0",
Expected behavior
Run afterAuth callback after installed
Actual behavior
Not run afterAuth callback after installed, however, run it when navigating to other routes in app
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: