MCPcopy Create free account
hub / github.com/Cv-Keep/cvkeep-backend / sendError

Function sendError

endpoints/resources/auth/socials/github/github.js:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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');

Callers 1

github.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected