Skip to content

Commit 851ba7f

Browse files
committed
add some defaults to oauth ids and secrets so they don't crash the server if they're not set
1 parent f1aa7cf commit 851ba7f

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: process.env.FACEBOOK_ID,
46-
clientSecret: process.env.FACEBOOK_SECRET,
45+
clientID: process.env.FACEBOOK_ID || 'id',
46+
clientSecret: process.env.FACEBOOK_SECRET || 'secret',
4747
callbackURL: 'http://localhost:9000/auth/facebook/callback'
4848
},
4949
<% } %><% if(filters.twitterAuth) { %>
5050
twitter: {
51-
clientID: process.env.TWITTER_ID,
52-
clientSecret: process.env.TWITTER_SECRET,
51+
clientID: process.env.TWITTER_ID || 'id',
52+
clientSecret: process.env.TWITTER_SECRET || 'secret',
5353
callbackURL: 'http://localhost:9000/auth/twitter/callback'
5454
},
5555
<% } %><% if(filters.googleAuth) { %>
5656
google: {
57-
clientID: process.env.GOOGLE_ID,
58-
clientSecret: process.env.GOOGLE_SECRET,
57+
clientID: process.env.GOOGLE_ID || 'id',
58+
clientSecret: process.env.GOOGLE_SECRET || 'secret',
5959
callbackURL: 'http://localhost:9000/auth/google/callback'
6060
}<% } %>
6161
};

0 commit comments

Comments
 (0)