Context: This happens after uninstalling and installing the app again when the shop is in soft delete mode. In this case, ShopAuthenticatedEvent is being fired when a shop is installed, not when authenticated, and this is causing some problems.
This is how I defined the listener.
And this is the code inside my listener.
After uninstalling and installing the shop again, it is being fired before I actually see the permission screen on Shopify. So, at this point, my user has been soft-deleted from the DB.
Context: This happens after uninstalling and installing the app again when the shop is in soft delete mode. In this case, ShopAuthenticatedEvent is being fired when a shop is installed, not when authenticated, and this is causing some problems.
This is how I defined the listener.
And this is the code inside my listener.
After uninstalling and installing the shop again, it is being fired before I actually see the permission screen on Shopify. So, at this point, my user has been soft-deleted from the DB.
And this is the log I see in the terminal.