File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/components/slack_login Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,18 @@ const errorMessage = ref("");
90
90
const scope = " incoming-webhook" ;
91
91
const redirectUri = process .env .SLACK_REDIRECT_URI ;
92
92
const clientId = process .env .SLACK_CLIENT_ID ;
93
-
94
93
isAuthenticating .value = true ;
95
94
95
+ if (redirectUri && clientId ) {
96
96
const trimmedUri = redirectUri .slice (1 , redirectUri .length - 1 );
97
97
const trimmedClientId = clientId .slice (1 , clientId .length - 1 );
98
-
98
+
99
99
shell .openExternal (
100
100
` ${slackBaseUrl }?scope=${scope }&redirect_uri=${trimmedUri }&client_id=${trimmedClientId } ` ,
101
101
{ activate: true }
102
102
);
103
103
}
104
+ }
104
105
105
106
const saveToLocalForage = (key : string , value : string ) => {
106
107
localforage .setItem (key , value );
You can’t perform that action at this time.
0 commit comments