Skip to content

Commit

Permalink
Prevention of time synchronization deviation
Browse files Browse the repository at this point in the history
  • Loading branch information
ryosuke-wakaba committed Jul 18, 2024
1 parent 7f9aa25 commit 7d25772
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ object JwtVpJsonPresentation {
"verifiableCredential" to listOf(vcJwt)
)

val currentTimeSeconds = System.currentTimeMillis() / 1000
val currentTimeSeconds = (System.currentTimeMillis() / 1000) - 5 // Prevention of time synchronization deviation
return VpJwtPayload(
iss = payloadOptions.iss,
jti = payloadOptions.jti,
Expand Down

0 comments on commit 7d25772

Please sign in to comment.