Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/slack_oauth/mod.ts>InstallProvider#handle

Setup the OAuth flow for Slack apps easily. Deno port of @slack/oauth
Latest
method InstallProvider.prototype.handle
import { InstallProvider } from "https://deno.land/x/slack_oauth@3.0.2/mod.ts";

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.

Parameters

code: string
state: string

Returns

Promise<string>