Skip to main content
Module

x/slack_bolt/deps.ts>InstallProvider

TypeScript framework to build Slack apps in a flash with the latest platform features. Deno port of @slack/bolt
Latest
class InstallProvider
import { InstallProvider } from "https://deno.land/x/slack_bolt@1.0.0/deps.ts";

InstallProvider Class.

Constructors

new
InstallProvider(unnamed 0: InstallProviderOptions)

Properties

private
authorizationUrl: string
private
authVersion: string
private
clientId: string
private
clientOptions: WebClientOptions
private
clientSecret: string
private
logger: Logger
installationStore: InstallationStore
stateStore: StateStore

Methods

authorize(source: InstallationQuery<boolean>): Promise<AuthorizeResult>

Fetches data from the installationStore for non Org Installations.

generateInstallUrl(options: InstallURLOptions): Promise<string>

Returns a URL that is suitable for including in an Add to Slack button Uses stateStore to generate a value for the state query param.

handle(code: string, state: string): Promise<string>

This method handles the incoming request to the callback URL. It can be used as a RequestListener in almost any HTTP server framework.

Verifies the state using the stateStore, exchanges the grant in the query params for an access token, and stores token and associated data in the installationStore.