Docs
/
/
In-App UI
React

SlackAuthButton

A React component that renders a button for authenticating with Slack.

Usage

#

Props

#
slackClientIdstring

The client ID of your Slack application.

redirectUrlstring

The URL of your application to return to once Slack authorization is complete.

onAuthenticationComplete(authenticationResult: 'authComplete' | 'authFailed') => void;

An optional callback function you can pass to this component that will execute upon completion of the authentication flow. Takes one argument of the authentication result for you to handle in your callback.

New chat