Skip to content

Commit d9fdc72

Browse files
authored
authentication
1 parent 9961007 commit d9fdc72

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

routes/auth.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11

2+
const express = require('express');
3+
const router = express.Router();
4+
const passport = require('passport');
5+
6+
7+
router.get('/google', passport.authenticate('google',
8+
{scope: ['profile', 'email']}));
9+
10+
module.exports = router;

0 commit comments

Comments
 (0)