fix: add prefer-date-now rule (#5113)

This commit is contained in:
LongYinan
2023-11-29 04:43:54 +00:00
parent 4dddbbdaee
commit bd488262fa
4 changed files with 4 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ export type UserClaim = Pick<
hasPassword?: boolean;
};
export const getUtcTimestamp = () => Math.floor(new Date().getTime() / 1000);
export const getUtcTimestamp = () => Math.floor(Date.now() / 1000);
@Injectable()
export class AuthService {