Skip to content

Commit e57bf8f

Browse files
authored
fix: exp encoding (#2101)
Signed-off-by: Timo Glastra <[email protected]>
1 parent e03d204 commit e57bf8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openid4vc/src/shared/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,5 +198,5 @@ export function addSecondsToDate(date: Date, seconds: number) {
198198
}
199199

200200
export function dateToSeconds(date: Date) {
201-
return Math.floor(date.getTime() * 1000)
201+
return Math.floor(date.getTime() / 1000)
202202
}

0 commit comments

Comments
 (0)