-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
22 lines (20 loc) · 916 Bytes
/
config.js
File metadata and controls
22 lines (20 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if(!process.env.CLIENT_ID || !process.env.CLIENT_SECRET) {
console.log('Please fill out the settings in the .env file to connect with Gopher');
process.exit();
}
const extensionUrl = process.env.EXTENSION_URL;
const clientId = process.env.CLIENT_ID;
const clientSecret = process.env.CLIENT_SECRET;
const apiHost = process.env.API_HOST || 'https://www.gopher.email/';
const redirectUrl = process.env.REDIRECT_URI || 'https://' + process.env.PROJECT_DOMAIN + '.glitch.me/auth/callback';
module.exports = {
extensionUrl: extensionUrl,
apiHost: apiHost,
clientId: clientId,
clientSecret: clientSecret,
redirectUri: redirectUrl,
tokenHost: apiHost,
tokenPath: apiHost + 'api/v1/oauth2/access_token',
authorizePath: apiHost + 'settings/oauth2_authorize',
scope: 'get_user_info extension_manage_self manage_reminders read_reminders manage_logs read_logs read_tasks manage_tasks manage_extensions'
}