diff --git a/modules/auth/auth.controller.js b/modules/auth/auth.controller.js index e636a97..74fb179 100644 --- a/modules/auth/auth.controller.js +++ b/modules/auth/auth.controller.js @@ -247,7 +247,10 @@ async function singup(req, res, next) { } return controllerHelper.handleResultResponse(newUser, null, req.params, res, httpStatus.OK); +} +function verify(req, res, next) { + return controllerHelper.handleResultResponse('OK', null, req.params, res, httpStatus.OK); } @@ -258,5 +261,6 @@ module.exports = { regenerateToken, rejectToken, singup, + verify, MODULE_NAME } \ No newline at end of file diff --git a/modules/auth/auth.routes.js b/modules/auth/auth.routes.js index 055c668..52c982f 100644 --- a/modules/auth/auth.routes.js +++ b/modules/auth/auth.routes.js @@ -26,9 +26,7 @@ routes.post('/auth', routes.get('/auth/verify', AccessValidator.isAdministratorUser, - function (req, res) { - res.status(200) - } + authController.verify, ); // Registro de usuario a partir del usuario de Firebase y