79187033

Date: 2024-11-14 00:19:54
Score: 1.5
Natty:
Report link

Okay Guys this problem is now solved I think I found out something the cookie parse should be use before access the token

import cookieParser from 'cookie-parser';

dotenv.config();

const authenticateToken = async (cookieParser,req, res, next) => { const token = req.cookies.accessToken; // Retrieve token from cookies

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: IDRISSA MAÏGA