So to keep an App in the App Store, we have to migrate to expiring tokens. So I did that. It works. The few customers I interacted with proved that that logged into the App, got upgrades, and now they function with the expiring tokens.
Great!
Today I get a letter saying if I want to keep this App going and in App Store, I have too update to expiring tokens. OK. So I ignore that as just being behind the times, because I already migrated the App. Then I look at the stats they sent along too.
You have 141 tokens to migrate. These tokens were used by 388 shops over the past 14 days.
So this is where is goes off the Rails. I just audited the DB of shops holding tokens and first off, it was less then 388. Reality was, just under 80 shops actively pay a subscription and have a working offline token to migrate. Maybe 3 have migrated. About 200 were 401 or uninstalled long ago or were frozen. So with a lot of effort I deleted almost all the crap, leaving just a few stragglers I am sure will never come back. If they do, they simply get the new scopes and tokens if they agree and pay for a subscription. No big deal.
So why are the numbers in this email subversive, silly, wrong, and scary? Are you gonna delist me even though people are happily paying me for the App and using expiring tokens to do so? How did 141 tokens get used on 388 stores? What is a token anyway? What is a shop? Am I in trouble? Who is in charge?
Anyway, spicy take, this email sent out junk, the partner dashboard for Apps reports junk, and it sure would be nice to just see in my face hey, it appears like 80 stores are paying you, and whatever they do, as long as one they ask for an expiring token you’re good to go. I don’t see that. Anywhere.
Are you gonna delist me even though people are happily paying me for the App and using expiring tokens to do so?
No, apps will not be de-listed for having old non-expiring tokens. It is the usage of non-expiring offline access tokens that triggers the alert.
We emailed partners who have public apps that have active non-expiring access tokens. Those tokens represent a latent ability to trigger the alert, even if they are never going to be used.
Yes, I’m irritated by the lack of acknowledgment that the numbers in the email are completely wrong.
Mine gave a number of old, inactive tokens that might actually be more or less correct. Then it gives a number of shops that doesn’t make any sense no matter how you slice it. And then it says “over the past 14 days”, which simply is not true.
Tomorrow I’ll just purge all the permanent tokens from the dead and dormant stores so I don’t have to worry about it, and accept that I’ll probably receive some crazy emails for a while.
Tomorrow I’ll just purge all the permanent tokens from the dead and dormant stores so I don’t have to worry about it
This is a safe thing to do to tokens for installations you don’t want to exchange for expiring tokens. Keep in mind that deleting the data in your database won’t mark those tokens as invalid or deleted in the Shopify database which can result in us thinking you still hold valid non-expiring tokens.
Two things you can also consider doing:
- Exchange the old non-expiring tokens for new expiring tokens, even for the dormant stores. Performing this migration will invalidate the old non-expiring tokens.
- If you’re 100% confident the installation is fully dead in a store you can uninstall the app by calling the appUninstall mutation. Be aware that this will have destructive side effects like removing webhook subscriptions, extensions, etc. It will also (ironically, I know) result in an alert that your app made an API request with a non-expiring token, but that will clear after 14 days.
May I humbly suggest that Shopify just give us a “force uninstall” button from the Installs list in the Dev Dashboard? Some of them I don’t have the tokens at all anymore because it was purged on our side years and years ago.
That would allow the partner ecosystem to clean up this mess of dead and dormant stores many of us seem to share without triggering more automated nastygrams about using the permanent token for the appUninstall or exerting even more effort to go through whatever new recovery process was just introduced during what already is the start of peak season.
Seriously, we all have a heart attack whenever we get the next “Action required” email from Shopify.
Same they don’t match our real data. Even the new dev dashboard reports invalid number of install vs the previous one.
i have updated my app expire token.
Good point, we’ll look into this.
We’re continuing to invest in the dev dashboard experience and the install metrics. Install metrics are surprisingly complicated due to a variety of factors, but we’re committed to providing better visibility into installs for app developers.
You can now uninstall apps directly from the dev dashboard. Thanks for the great suggestion!
Thank you. This will help a lot of Partners clean up a lot of defunct integrations and reduce the mutual attack surface.