Skip to content

Use of LocalDateTime in SD-JWT library #11

@jbenipal

Description

@jbenipal

Hi,

While experimenting with the SD-JWT library to create and verify presentations, I saw that the library uses LocalDateTime to verify if the JWT was within 30 seconds time period in the method verifyJwtClaims. This verification code works fine if the LocalDateTime creates the object in UTC as the original key binding JWT created using nimbus library (in createPresentation) is in UTC time. However for other time zones, it fails with error JWT not yet valid.

I can put up a fix, if the explanation seems correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions