| 10 | const ghClientSecret = config.social_login.github.client_secret; |
| 11 | |
| 12 | const sendError = error => { |
| 13 | error && log('error', error); |
| 14 | |
| 15 | return fnUtils.errorPage(res, res.i18n.t(error || 'error.internalUnexpectedError')); |
| 16 | }; |
| 17 | |
| 18 | if (!ghCode) { |
| 19 | return sendError('error.noGithubAccessCode'); |