forked from maksrom/javascript-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthProviders.js
More file actions
44 lines (43 loc) · 1.1 KB
/
Copy pathauthProviders.js
File metadata and controls
44 lines (43 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
var secret = require('./secret');
module.exports = {
facebook: {
testCredentials: secret.facebook.testCredentials,
appId: secret.facebook.appId,
appSecret: secret.facebook.appSecret,
passportOptions: {
display: 'popup',
scope: ['email']
}
},
google: {
appId: secret.google.appId,
appSecret: secret.google.appSecret,
passportOptions: {
scope: [
'profile',
// https://www.googleapis.com/auth/plus.login - request access to circles (not needed)
// 'https://www.googleapis.com/auth/plus.profile.emails.read' - also works
'email'
]
}
},
github: {
appId: secret.github.appId,
appSecret: secret.github.appSecret,
passportOptions: {
scope: 'user:email'
}
},
yandex: {
appId: secret.yandex.appId,
appSecret: secret.yandex.appSecret,
passportOptions: {}
},
vkontakte: {
appId: secret.vkontakte.appId,
appSecret: secret.vkontakte.appSecret,
passportOptions: {
scope: 'email'
}
}
};