From 37185a9fbc9286b9c0dab8db6fb86dd85e9fb8f4 Mon Sep 17 00:00:00 2001 From: Fachba Date: Mon, 22 Dec 2025 17:23:22 +0700 Subject: [PATCH] fixing redirect token wa --- controllers/auth.controller.js | 3 ++- routes/notification_error.route.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/auth.controller.js b/controllers/auth.controller.js index 1c75f84..69ce205 100644 --- a/controllers/auth.controller.js +++ b/controllers/auth.controller.js @@ -125,7 +125,8 @@ class AuthController { const response = await setResponse( { - accessToken: tokens.accessToken + accessToken: tokens.accessToken, + idData }, 'Verify successful' ); diff --git a/routes/notification_error.route.js b/routes/notification_error.route.js index d8ab014..143a0b2 100644 --- a/routes/notification_error.route.js +++ b/routes/notification_error.route.js @@ -15,7 +15,7 @@ router router .route('/:id') - .get(verifyToken.verifyAccessToken, verifyAccess(), NotificationErrorController.getById) + .get(verifyToken.verifyAccessToken, NotificationErrorController.getById) .put(verifyToken.verifyAccessToken, verifyAccess(), NotificationErrorController.update) module.exports = router;