How to fix Slack OAuth error: invalid_team_for _non_distributed_app
Blog post from Nango
The invalid_team_for_non_distributed_app error in Slack occurs when attempting to install an app in a different workspace than the one it was created in, due to Slack's default restriction for internal use only. To resolve this, app developers need to enable public distribution by activating it in the Slack App Dashboard and ensuring all necessary settings, such as OAuth redirect URLs and required scopes, are correctly configured. The process does not necessitate submitting the app to the Slack Marketplace, and successful activation allows for installation across any workspace. Nango, an open-source platform, offers a streamlined solution for managing Slack integrations by automating token storage, refreshes, and webhook handling, thereby reducing the need for extensive custom code.