Skip to content

Commit 7a47615

Browse files
committed
test oauth
1 parent d1e6cb9 commit 7a47615

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

server/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,12 @@ passport.use(
1818
)
1919
);
2020

21+
app.get(
22+
'/auth/google',
23+
passport.authenticate('google', {
24+
scope: ['profile', 'email']
25+
})
26+
);
27+
2128
const PORT = process.env.PORT || 5000;
2229
app.listen(PORT);

0 commit comments

Comments
 (0)