Overview of @slack/oauth
mainThe @slack/oauth package simplifies the OAuth flow for Slack apps. It supports both V2 OAuth for modern Slack Apps and V1 OAuth for legacy Classic Slack apps. It is designed for apps installed in multiple workspaces (e.g., Slack Marketplace or Enterprise Grid) and handles:
- URL generation for installation
- State verification
- Authorization code exchange for access tokens
- Providing an interface to plug in custom databases for storing installation data.