Skip to content

Commit 4df8a9e

Browse files
committed
Add credential templates
1 parent f2c6b03 commit 4df8a9e

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_modules
66
*.pem
77
*.ppk
88
configs/**/credential.*
9+
!configs/**/credential.tmpl.*
910

1011
# Log
1112
*.log
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
development: 'mongodb://<username>:<password>@<host>:<port>/<databaseName>-development',
3+
test: 'mongodb://<username>:<password>@<host>:<port>/<databaseName>-test',
4+
production: 'mongodb://<username>:<password>@<host>:<port>/<databaseName>-production',
5+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
default: {
3+
// ref: <https://developers.facebook.com/docs/graph-api/reference/user>
4+
profileFields: ['id', 'displayName', 'email', 'picture'],
5+
},
6+
development: {
7+
clientID: '121212121212121',
8+
clientSecret: 'abcedfghi123456789abcdefghi12345',
9+
callbackURL: 'http://localhost:3000/auth/facebook/callback',
10+
},
11+
test: {
12+
clientID: '121212121212121',
13+
clientSecret: 'abcedfghi123456789abcdefghi12345',
14+
callbackURL: 'http://localhost:5566/auth/facebook/callback',
15+
},
16+
production: {
17+
clientID: '343434343434343',
18+
clientSecret: 'abcedfghi123456789abcdefghi12345',
19+
callbackURL: 'https://express-react-hmr-boilerplate.herokuapp.com/auth/facebook/callback',
20+
},
21+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
default: {
3+
scope: ['r_basicprofile', 'r_emailaddress'],
4+
passReqToCallback: true,
5+
},
6+
development: {
7+
clientID: '7a7a7a7a7a7a7a',
8+
clientSecret: 'B9B9B9B9B9B9B9B9',
9+
callbackURL: 'http://localhost:3000/auth/linkedin/callback',
10+
},
11+
test: {
12+
clientID: '7a7a7a7a7a7a7a',
13+
clientSecret: 'B9B9B9B9B9B9B9B9',
14+
callbackURL: 'http://localhost:5566/auth/linkedin/callback',
15+
},
16+
production: {
17+
clientID: '7a7a7a7a7a7a7a',
18+
clientSecret: 'B9B9B9B9B9B9B9B9',
19+
callbackURL: 'https://express-react-hmr-boilerplate.herokuapp.com/auth/linkedin/callback',
20+
},
21+
};

0 commit comments

Comments
 (0)