Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router.get('/api/v1/auth/github/callback',
- return passport.authenticate('github', {sucessRedirect: '/'});
- );
- ==>
- router.get('/api/v1/auth/github/callback',
- async (ctx: any, next: any) => {
- return passport.authenticate('github', (user: any, info: any, status: any) => {
- ctx.redirect('/');
- })(ctx, next);
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement