primer commit hacia el nuevo servidor de git

This commit is contained in:
2026-07-17 18:22:52 -03:00
parent 5696cee264
commit d6a4aab52b
6 changed files with 1458 additions and 1088 deletions
+6 -6
View File
@@ -630,7 +630,7 @@ class UsersManager implements IUsersManager {
// Generate a JWT token using the payload and a secret word
const token = jwt.sign(payload, `${process.env.SECRET_WORD}`, {
expiresIn: `${process.env.TOKEN_SESSION_TIME}`,
expiresIn: `${process.env.TOKEN_SESSION_TIME}` as any,
});
// Create a user object by merging the payload and the token
@@ -684,7 +684,7 @@ class UsersManager implements IUsersManager {
// If the token expires in less than 5 minutes, generate a new one.
if (decodedPayload.exp < nowInSeconds + fiveMinutesInSeconds) {
finalToken = jwt.sign(payload, `${process.env.SECRET_WORD}`, {
expiresIn: `${process.env.TOKEN_SESSION_TIME}`,
expiresIn: `${process.env.TOKEN_SESSION_TIME}` as any,
});
}
@@ -765,7 +765,7 @@ class UsersManager implements IUsersManager {
// Generate a JWT token using the payload and a secret word
const token = jwt.sign(payload, `${process.env.SECRET_WORD}`, {
expiresIn: `${process.env.TOKEN_SESSION_TIME}`,
expiresIn: `${process.env.TOKEN_SESSION_TIME}` as any,
});
// Create a user object by merging the payload and the token
@@ -810,7 +810,7 @@ class UsersManager implements IUsersManager {
// Generate a JWT token using the payload and a secret word
const token = jwt.sign(payload, `${process.env.SECRET_WORD}`, {
expiresIn: `${process.env.TOKEN_SESSION_TIME}`,
expiresIn: `${process.env.TOKEN_SESSION_TIME}` as any,
});
// Create a user object by merging the payload and the token
@@ -862,7 +862,7 @@ class UsersManager implements IUsersManager {
// Generate a JWT token using the payload and a secret word
const token = jwt.sign(payload, `${process.env.SECRET_WORD}`, {
expiresIn: `${process.env.TOKEN_SESSION_TIME}`,
expiresIn: `${process.env.TOKEN_SESSION_TIME}` as any,
});
// Create a user object by merging the payload and the token
@@ -907,7 +907,7 @@ class UsersManager implements IUsersManager {
// Generate a JWT token using the payload and a secret word
const token = jwt.sign(payload, `${process.env.SECRET_WORD}`, {
expiresIn: `${process.env.TOKEN_SESSION_TIME}`,
expiresIn: `${process.env.TOKEN_SESSION_TIME}` as any,
});
// Create a user object by merging the payload and the token