File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src-electron/main-process Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ function getSlackAuth() {
95
95
code : authCode ,
96
96
redirect_uri : isDev ? "overvuedev://test" : "overvue://slack"
97
97
} ;
98
- logEverywhere ( authData . code )
98
+ logEverywhere ( authData . code ) ;
99
99
// https://slack.com/api/openid.connect.token?client_id=2696943977700.2696948669268&client_secret=6a6206cc93da2e49243ee9683f958438&code=2696943977700.2713919388452.23b787dec24adec68eeca105f6b7d6e517425de1033a1b6bc5ba3e116b933619&redirect_uri=overvue://slack
100
100
const url =
101
101
"https://slack.com/api/openid.connect.token?" +
@@ -105,6 +105,7 @@ function getSlackAuth() {
105
105
authData . client_secret +
106
106
"&code=" +
107
107
authData . code +
108
+ "&grant_type=authorization_key" +
108
109
"&redirect_uri=" +
109
110
authData . redirect_uri ;
110
111
logEverywhere ( url ) ;
@@ -140,8 +141,8 @@ function getSlackAuth() {
140
141
function getSlackToken ( ) {
141
142
return deeplink . on ( "received" , link => {
142
143
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 ] ;
145
146
getSlackAuth ( ) ;
146
147
} ) ;
147
148
}
Original file line number Diff line number Diff line change 1
1
2
2
const routes = [
3
3
{
4
- path : '/start ' ,
4
+ path : '/' ,
5
5
// redirect: ''
6
6
component : ( ) => import ( 'components/slack_login/SlackLoginWindow.vue' )
7
7
} ,
@@ -11,7 +11,7 @@ const routes = [
11
11
redirect : '/pow'
12
12
} ,
13
13
{
14
- path : '/' ,
14
+ path : '/asdf ' ,
15
15
component : ( ) => import ( 'layouts/MyLayout.vue' ) ,
16
16
children : [
17
17
{ path : '' , component : ( ) => import ( 'pages/Index.vue' ) }
You can’t perform that action at this time.
0 commit comments