Open matthewsecrist opened 3 years ago
Hey @matthewsecrist
I have definitely run into this before. I wrote the OAuth package and the support for it in bolt-js. This isn't a bug in the library but an issue with how the platform dispatches events. I don't believe there are currently plans to fix this.
Question for you, what work are you doing during the token_revoked
event and app_uninstalled
event?
Reading those links, it makes sense.
@stevengill For the token_revoked
, I remove the stored user configurations in the database, and for app_uninstalled
, I remove the workspace configuration as well as associated user configurations, just to make sure everything is cleaned up.
Description
There are times that the
tokens_revoked
event will be received after theapp_uninstalled
event. If I delete the workspace configuration from my installation store when theapp_uninstalled
event happens, thetokens_revoked
events will throw errors.What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 2.4.1
node version:
OS version(s):
Steps to reproduce:
app_uninstalled
event by immediately deleting the workspace installation.Expected result:
I expect that the
tokens_revoked
events come before theapp_uninstalled
events.Actual result:
It seems that the
tokens_revoked
events come after theapp_uninstalled
event, which means when they come in, the workspace configuration is gone, and errors are thrown.Attachments: