Skip to content
Snippets Groups Projects
Commit afe94b50 authored by tpgus2603's avatar tpgus2603
Browse files

bugfix: 라우터코드 오류 수정

parent 74562374
No related branches found
No related tags found
1 merge request!42[#25] 배포코드 master브랜치로 이동
......@@ -4,9 +4,12 @@ const passport = require('passport');
const router = express.Router();
// GET api/auth/login
router.get('/login', (req, res, next) => {
passport.authenticate('google', { failureRedirect: `${process.env.FRONT_URL}/login` }),
});
router.get('/login',
passport.authenticate('google', {
failureRedirect: `${process.env.FRONT_URL}/login`
})
);
router.get(
'/google/callback',
passport.authenticate('google', { failureRedirect: '/auth/login' }),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment