We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe9dd94 commit d1e6cb9Copy full SHA for d1e6cb9
1 file changed
server/index.js
@@ -1,10 +1,22 @@
1
const express = require('express');
2
const passport = require('passport');
3
const GoogleStrategy = require('passport-google-oauth20').Strategy;
4
+const keys = require('./config/keys');
5
6
const app = express();
7
-passport.use(new GoogleStrategy());
8
+passport.use(
9
+ new GoogleStrategy(
10
+ {
11
+ clientID: keys.googleClientID,
12
+ clientSecret: keys.googleClientSecret,
13
+ callbackURL: '/auth/google/callback'
14
+ },
15
+ accessToken => {
16
+ console.log(accessToken);
17
+ }
18
+ )
19
+);
20
21
const PORT = process.env.PORT || 5000;
22
app.listen(PORT);
0 commit comments