diff --git a/controllers/authController.js b/controllers/authController.js index 5f5a5d8..6655b13 100644 --- a/controllers/authController.js +++ b/controllers/authController.js @@ -189,7 +189,7 @@ class AuthController { domain: process.env.ENVIRONMENT === 'production' ? '.nmtung.dev' : 'localhost', sameSite: 'lax' }) - .cookie("info", dataUser, { + .cookie("info", data[0].C_USERNAME, { httpOnly: false, secure: true, domain: process.env.ENVIRONMENT === 'production' ? '.nmtung.dev' : 'localhost',