From 861adc0b96723fb12cf3d50b8d71196a1dcf6ce0 Mon Sep 17 00:00:00 2001 From: Rushi Gandhi Date: Fri, 18 Oct 2024 09:47:38 +0530 Subject: [PATCH] fix error.method name in refreshAuthToken --- Server/controllers/authController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/controllers/authController.js b/Server/controllers/authController.js index a1a1988f1..c668bb69f 100644 --- a/Server/controllers/authController.js +++ b/Server/controllers/authController.js @@ -193,7 +193,7 @@ const refreshAuthToken = (req, res, next) => { const error = new Error(errorMessages.NO_REFRESH_TOKEN); error.status = 401; error.service = SERVICE_NAME; - error.method = "handleExpiredJwtToken"; + error.method = "refreshAuthToken"; return next(error); }