Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. router.get('/api/v1/auth/github/callback',
  2. return passport.authenticate('github', {sucessRedirect: '/'});
  3. );
  4. ==>
  5. router.get('/api/v1/auth/github/callback',
  6. async (ctx: any, next: any) => {
  7. return passport.authenticate('github', (user: any, info: any, status: any) => {
  8. ctx.redirect('/');
  9. })(ctx, next);
  10. }
  11. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement