Skip to content

Commit

Permalink
chore: reset to default google midlleware
Browse files Browse the repository at this point in the history
  • Loading branch information
conradbekondo committed Dec 27, 2024
1 parent 3164b3e commit 3bb04d4
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions netlify/functions/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,13 @@ passport.deserializeUser<number>((id, done) => {
});

const router = Router();
router.get('/', (req,res,next) => {
console.debug(process.env['URL'], process.env['BASE_URL']);
passport.authenticate('google', {
session: false,
scope: [
'profile',
'email',
]
})(req,res,next);
});
router.get('/', passport.authenticate('google', {
session: false,
scope: [
'profile',
'email',
]
}));
router.get('/callback', passport.authenticate('google', {
failureRedirect: '/auth/login', session: false,
}), (req: Request, res: Response) => {
Expand Down

0 comments on commit 3bb04d4

Please sign in to comment.