Skip to content

Commit

Permalink
fix: exp encoding (#2101)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <timo@animo.id>
  • Loading branch information
TimoGlastra authored Nov 22, 2024
1 parent e03d204 commit e57bf8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openid4vc/src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,5 @@ export function addSecondsToDate(date: Date, seconds: number) {
}

export function dateToSeconds(date: Date) {
return Math.floor(date.getTime() * 1000)
return Math.floor(date.getTime() / 1000)
}

0 comments on commit e57bf8f

Please sign in to comment.