mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 07:34:54 +00:00
otp check if user is verified
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
export function differenceInSeconds(date1: Date, date2: Date): number {
|
||||
const diffInMilliseconds = date1.getTime() - date2.getTime(); // Difference in milliseconds
|
||||
return Math.floor(diffInMilliseconds / 1000); // Convert to seconds and round down
|
||||
const diffInMilliseconds = date1.getTime() - date2.getTime();
|
||||
return Math.floor(diffInMilliseconds / 1000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user