import { InstallProvider } from "https://deno.land/x/slack_oauth@3.0.2/mod.ts";
InstallProvider Class.
Constructors
new
InstallProvider(unnamed 0: InstallProviderOptions)Properties
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.