(state?: string)
| 55 | }); |
| 56 | |
| 57 | const githubSignIn = (state?: string) => |
| 58 | !!githubClientID && !!githubClientSecret |
| 59 | ? passport.authenticate('github', { |
| 60 | session: false, |
| 61 | failWithError: true, |
| 62 | scope: ['user:email'], |
| 63 | state, |
| 64 | }) |
| 65 | : () => {}; |
| 66 | |
| 67 | return { |
| 68 | passport, |