Skip to content

Commit db7d72e

Browse files
committed
added grant_type to slack auth link for token
1 parent 22427fa commit db7d72e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src-electron/main-process/electron-main.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function getSlackAuth() {
9595
code: authCode,
9696
redirect_uri: isDev ? "overvuedev://test" : "overvue://slack"
9797
};
98-
logEverywhere(authData.code)
98+
logEverywhere(authData.code);
9999
// https://slack.com/api/openid.connect.token?client_id=2696943977700.2696948669268&client_secret=6a6206cc93da2e49243ee9683f958438&code=2696943977700.2713919388452.23b787dec24adec68eeca105f6b7d6e517425de1033a1b6bc5ba3e116b933619&redirect_uri=overvue://slack
100100
const url =
101101
"https://slack.com/api/openid.connect.token?" +
@@ -105,6 +105,7 @@ function getSlackAuth() {
105105
authData.client_secret +
106106
"&code=" +
107107
authData.code +
108+
"&grant_type=authorization_key" +
108109
"&redirect_uri=" +
109110
authData.redirect_uri;
110111
logEverywhere(url);
@@ -140,8 +141,8 @@ function getSlackAuth() {
140141
function getSlackToken() {
141142
return deeplink.on("received", link => {
142143
logEverywhere(`auth worked here link: ${link}`);
143-
authCode = link.split("=")[1];
144-
// authCode = link.split("=")[1].split(".")[2];
144+
// authCode = link.split("=")[1];
145+
authCode = link.split("=")[1].split(".")[2];
145146
getSlackAuth();
146147
});
147148
}

src/router/routes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
const routes = [
33
{
4-
path: '/start',
4+
path: '/',
55
// redirect: ''
66
component: () => import('components/slack_login/SlackLoginWindow.vue')
77
},
@@ -11,7 +11,7 @@ const routes = [
1111
redirect: '/pow'
1212
},
1313
{
14-
path: '/',
14+
path: '/asdf',
1515
component: () => import('layouts/MyLayout.vue'),
1616
children: [
1717
{ path: '', component: () => import('pages/Index.vue') }

0 commit comments

Comments
 (0)