se agregó expiración

This commit is contained in:
evenegas
2025-10-03 14:08:17 -06:00
parent 258a03e7b4
commit 4615306784
+8 -7
View File
@@ -110,13 +110,14 @@ export class QrTokenService {
return null;
}
return {
id_participante: decoded.id_participante,
id_evento: decoded.id_evento,
id_cuestionario: decoded.id_cuestionario,
type: decoded.type,
iat: decoded.iat,
};
return {
id_participante: decoded.id_participante,
id_evento: decoded.id_evento,
id_cuestionario: decoded.id_cuestionario,
type: decoded.type,
iat: decoded.iat,
exp: decoded.exp,
};
} catch (error) {
console.error('Error validando token QR:', error.message);
return null;