diff --git a/packages/sdk/src/client-auth-server/session/index.ts b/packages/sdk/src/client-auth-server/session/index.ts index 309d4db..9ad024b 100644 --- a/packages/sdk/src/client-auth-server/session/index.ts +++ b/packages/sdk/src/client-auth-server/session/index.ts @@ -119,7 +119,7 @@ export const formatLimitPreferences = (limit: PartialLimit): Limit => { export const formatDatePreferences = (date: string | bigint | Date): bigint => { if (typeof date === "string") { - const now = new Date().getTime(); + const now = Math.floor(new Date().getTime() / 1000); const seconds = msStringToSeconds(date); return BigInt(now) + seconds; }