Pull in GitHub settings for production properly
This commit is contained in:
parent
1e3b9cf060
commit
a9f849d3a0
|
@ -59,6 +59,12 @@ app.configure(authentication(app.get('authentication')));
|
|||
|
||||
app.configure(jwt());
|
||||
const githubSettings = app.get('github');
|
||||
|
||||
if (process.env.NODE_ENV == 'production') {
|
||||
githubSettings.clientID = process.env.CLIENT_ID;
|
||||
githubSettings.clientSecret = process.env.CLIENT_SECRET;
|
||||
}
|
||||
|
||||
app.configure(oauth2(Object.assign(githubSettings, {
|
||||
name: 'github',
|
||||
Strategy: Strategy,
|
||||
|
|
Loading…
Reference in New Issue