primer commit hacia el nuevo servidor de git
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user