690524:1054 ADR-028-228-migration #02
This commit is contained in:
@@ -94,7 +94,7 @@ export class AuthService {
|
||||
|
||||
const isBot = user.username === 'migration_bot';
|
||||
const accessTokenExpiresIn = isBot
|
||||
? '100y'
|
||||
? '10y'
|
||||
: this.configService.get<string>('JWT_EXPIRATION') || '15m';
|
||||
|
||||
const accessToken = await this.jwtService.signAsync(payload, {
|
||||
@@ -103,7 +103,7 @@ export class AuthService {
|
||||
});
|
||||
|
||||
const refreshTokenExpiresIn = isBot
|
||||
? '100y'
|
||||
? '2y'
|
||||
: this.configService.get<string>('JWT_REFRESH_EXPIRATION') || '7d';
|
||||
|
||||
const refreshToken = await this.jwtService.signAsync(payload, {
|
||||
|
||||
Reference in New Issue
Block a user