Skip to content

Commit

Permalink
change expiration time from 1 hour to 24 hour for email verification …
Browse files Browse the repository at this point in the history
…links (#580)
  • Loading branch information
hissalht authored Dec 7, 2023
1 parent 30b759a commit 86f0e63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions confiture-rest-api/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class AuthService {
email,
jti,
};
const verificationToken = this.jwt.signAsync(payload, { expiresIn: '1h' });
const verificationToken = this.jwt.signAsync(payload, { expiresIn: '24h' });
return verificationToken;
}

Expand Down Expand Up @@ -296,7 +296,7 @@ export class AuthService {
email,
jti,
};
const verificationToken = this.jwt.signAsync(payload, { expiresIn: '1h' });
const verificationToken = this.jwt.signAsync(payload, { expiresIn: '24h' });
return verificationToken;
}

Expand Down Expand Up @@ -401,7 +401,7 @@ export class AuthService {
const payload: RequestPasswordResetJwtPayload = {
email,
};
const verificationToken = this.jwt.signAsync(payload, { expiresIn: '1h' });
const verificationToken = this.jwt.signAsync(payload, { expiresIn: '24h' });
return verificationToken;
}

Expand Down

0 comments on commit 86f0e63

Please sign in to comment.