Move slack auth handling entirely to server

This commit is contained in:
Tom Moor
2018-05-28 23:44:56 -07:00
parent 35f6255dbd
commit 4a7f8d3895
7 changed files with 50 additions and 91 deletions

View File

@ -8,7 +8,7 @@ export function slackAuth(
'identity.avatar',
'identity.team',
],
redirectUri: string = `${process.env.URL}/auth/slack`
redirectUri: string = `${process.env.URL}/auth/slack.callback`
): string {
const baseUrl = 'https://slack.com/oauth/authorize';
const params = {