Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sicktastic committed Feb 4, 2018
1 parent 2f80a16 commit 32d3001
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ node_modules/
mocah/node_modules/**

reactjs/server/config/keys.js
/reactjs/server/config/keys.js
2 changes: 0 additions & 2 deletions reactjs/server/config/keys.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = {
googleClientID: '',
googleClientSecret: ''
}

7 changes: 6 additions & 1 deletion reactjs/server/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
const express = require('express');
const passport = require('passport');
const GoogleStrategy = require('passport-google-oauth20'),Strategy;
const keys = require('./config/keys');

const app = express();

passport.use(new GoogleStrategy());
passport.use(new GoogleStrategy({
clientID: keys.googleClientID,
clientSecret: keys.googleClientSecret
})
);

const PORT = process.env.PORT || 5000;
app.listen(5000);

0 comments on commit 32d3001

Please sign in to comment.