Skip to content

Commit

Permalink
fix: updated_at timestamp (seconds vs milliseconds) (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr authored Jul 31, 2024
1 parent f31bb31 commit 06f0a8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/consent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ const extractSession = (
}

if (identity.updated_at) {
session.id_token.updated_at = Date.parse(identity.updated_at)
session.id_token.updated_at = parseInt(
(Date.parse(identity.updated_at) / 1000).toFixed(0),
)
}
}
return session
Expand Down

0 comments on commit 06f0a8c

Please sign in to comment.