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

This commit is contained in:
LongYinan committed 2023-11-29 04:43:55 +00:00
1 parent 4dddbbdaee
commit bd488262fa
4 files changed
+4 -3

No files matched your search

@@ -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 {