YARA-1182

This commit is contained in:
SepehrYahyaee
2026-07-29 16:53:36 +03:30
parent ea4fcbe713
commit e742d43201
2 changed files with 54 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ export class UserAuthService {
role: "user",
};
const accToken = this.jwtService.sign(payload, {
secret: `${process.env.JWT_SECRET}`,
secret: `${process.env.JWT_SECRET}`, expiresIn: '1h'
});
await this.userDbService.findOneAndUpdate(
{ username: user.username },