- 
                Notifications
    You must be signed in to change notification settings 
- Fork 416
Open
Labels
auto-triage-skipPrevent this issue from being closed due to lack of activityPrevent this issue from being closed due to lack of activityenhancementM-T: A feature request for new functionalityM-T: A feature request for new functionality
Milestone
Description
You can override the callbackOptions and provide additional logic to run before/after installing the Slack app.
We use it to send a welcome message to the installing user after a succesfull installation. However, you need to manually end the response using res.end:
callbackOptions: {
        success: (installation, _options, _req, res) => {
          app.client.chat.postMessage({
            token: installation.bot.token,
            channel: installation.user.id,
            text: 'Welcome to my app!'
          });
          res.end('Success!');
        }
      }
This example just displays a basic message, rather than the default Slack page that displays when no logic is provided, that also automatically redirects to the Slack app, along with a magic link:
Requirements
I want the callback to provide a default, that you can call after executing your custom logic, which will show the same page but will still allow me to run my logic. The Python SDK already has this; see this PR.
Metadata
Metadata
Assignees
Labels
auto-triage-skipPrevent this issue from being closed due to lack of activityPrevent this issue from being closed due to lack of activityenhancementM-T: A feature request for new functionalityM-T: A feature request for new functionality
