You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vercel-ai-sdk: delete stored installations when the app is uninstalled #326
The vercel-ai-sdk/ app saves each OAuth installation to Vercel Blob, but nothing removes it again. BlobInstallationStore.async_delete_installation() and async_delete_bot() exist and are tested, yet nothing calls them, and the manifest doesn't subscribe to app_uninstalled or tokens_revoked. So when a workspace uninstalls the app or revokes a token, the bot and user tokens stay in Blob.
Options
Subscribe to app_uninstalled and tokens_revoked in manifest.json, then call app.enable_token_revocation_listeners() in app_vercel.py. Bolt's built-in listeners then call the installation store's delete methods.
Or add those two listeners by hand, if the built-in ones don't fit the lazy listener runner on Vercel.
The same store is copied into slack-samples/bolt-python-support-agent (#343), so a fix here should be ported there too.
Activity