Skip to content

Fixed incorrect extraction of credential expiration date into JWT claims - #689

Open
vdods wants to merge 2 commits into
spruceid:mainfrom
LedgerDomain:fix-vc-jwt-expiration-date
Open

Fixed incorrect extraction of credential expiration date into JWT claims#689
vdods wants to merge 2 commits into
spruceid:mainfrom
LedgerDomain:fix-vc-jwt-expiration-date

Conversation

@vdods

@vdods vdods commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Description

Summarize the changes included in this pull request. What is the current behavior and what is the updated/expected behavior of this PR? Include relevant context, and reasoning behind architectural/design decisions.

Fixes the incorrect processing of the "exp" field in VC JWTs. The existing behavior attempts to take "expirationDate" from the "credentialSubject" object within the VC. The correct behavior takes the "expirationDate" from the VC object itself.

Other changes

Describe any minor or "drive-by" changes here.

None

Optional section

  • Reviewers, please pay special attention to...
  • If this PR exceeds 500 lines, please explain why

Tested

How did you test these changes? Provide instructions so reviewers can reproduce if desired. Please also list any relevant details for your test configuration.

The testing was within my own code that handles VC JWTs.

cargo test --workspace --all-features passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant