Skip to content

Commit

Permalink
Logs para pruebas de refresh token
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo3829l committed Apr 5, 2024
1 parent b6796e0 commit 4486234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/middlewares/JWT.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export const requireToken = async (req, res, next) => {
export const requireRefreshToken = (req, res, next) => {
try {
console.log("Entro al refresh")
console.log(req.cookies.refreshToken)
const cookieString = req.headers.cookie;
console.log(req.headers)
// Buscar y extraer la parte después de "refreshToken="
const match = cookieString.match(/refreshToken=([^;]*)/);

Expand Down

0 comments on commit 4486234

Please sign in to comment.