Skip to content

Commit a6f1994

Browse files
committed
make oAuth strategies not required for server to start
1 parent 2eb612d commit a6f1994

File tree

1 file changed

+6
-6
lines changed
  • app/templates/server/config/environment

1 file changed

+6
-6
lines changed

app/templates/server/config/environment/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@ var all = {
4242
},
4343
<% if(filters.facebookAuth) { %>
4444
facebook: {
45-
clientID: requiredProcessEnv('FACEBOOK_ID'),
46-
clientSecret: requiredProcessEnv('FACEBOOK_SECRET'),
45+
clientID: process.env.FACEBOOK_ID,
46+
clientSecret: process.env.FACEBOOK_SECRET,
4747
callbackURL: 'http://localhost:9000/auth/facebook/callback'
4848
},
4949
<% } %><% if(filters.twitterAuth) { %>
5050
twitter: {
51-
clientID: requiredProcessEnv('TWITTER_ID'),
52-
clientSecret: requiredProcessEnv('TWITTER_SECRET'),
51+
clientID: process.env.TWITTER_ID,
52+
clientSecret: process.env.TWITTER_SECRET,
5353
callbackURL: 'http://localhost:9000/auth/twitter/callback'
5454
},
5555
<% } %><% if(filters.googleAuth) { %>
5656
google: {
57-
clientID: requiredProcessEnv('GOOGLE_ID'),
58-
clientSecret: requiredProcessEnv('GOOGLE_SECRET'),
57+
clientID: process.env.GOOGLE_ID,
58+
clientSecret: process.env.GOOGLE_SECRET,
5959
callbackURL: 'http://localhost:9000/auth/google/callback'
6060
}<% } %>
6161
};

0 commit comments

Comments
 (0)