Skip to content

Commit

Permalink
load client id from env var
Browse files Browse the repository at this point in the history
  • Loading branch information
atabel committed Nov 3, 2016
1 parent a32ea9e commit f8dc396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const url = require('url');
const WebSocketServer = require('ws').Server;
const createGoogleTokenVerifier = require('./google-auth/google-id-token-verifier');
const GOOGLE_CLIENT_ID = require('./config').GOOGLE_CLIENT_ID;
const GOOGLE_CLIENT_ID = process.env.GOOGLE_CLIENT_ID || require('./config').GOOGLE_CLIENT_ID;
const SERVER_PORT = process.env.PORT || 8080;

const verifyAuthToken = createGoogleTokenVerifier({clientId: GOOGLE_CLIENT_ID});
Expand Down

0 comments on commit f8dc396

Please sign in to comment.