fix: add prefer-date-now rule (#5113)
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user