fix: use environment service for refresh token's expiration (#337)

This commit is contained in:
Orel Lazri 2024-09-21 12:41:26 +03:00 committed by GitHub
parent 9390b39e35
commit e9e668bd39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,7 +31,7 @@ export class TokenService {
workspaceId,
type: JwtType.REFRESH,
};
const expiresIn = '30d'; // todo: fix
const expiresIn = this.environmentService.getJwtTokenExpiresIn();
return this.jwtService.sign(payload, { expiresIn });
}