Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: vc13 support draft #1942

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

auer-martin
Copy link
Contributor

No description provided.

Copy link

changeset-bot bot commented Jul 4, 2024

🦋 Changeset detected

Latest commit: a5557eb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@credo-ts/openid4vc Patch
@credo-ts/action-menu Patch
@credo-ts/anoncreds Patch
@credo-ts/askar Patch
@credo-ts/bbs-signatures Patch
@credo-ts/cheqd Patch
@credo-ts/core Patch
@credo-ts/drpc Patch
@credo-ts/indy-sdk-to-askar-migration Patch
@credo-ts/indy-vdr Patch
@credo-ts/node Patch
@credo-ts/question-answer Patch
@credo-ts/react-native Patch
@credo-ts/tenants Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Signed-off-by: Martin Auer <martin.auer97@gmail.com>
Signed-off-by: Martin Auer <martin.auer97@gmail.com>
Signed-off-by: Martin Auer <martin.auer97@gmail.com>
Copy link
Contributor

@TimoGlastra TimoGlastra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff on the update martin, and making sure we keep supporting both draft 11 and draft 13. The typing feels a bit off though, and it would be good if you can spend some time to make sure we are aligned, as I found several things that didn't seem to align with supporting both 11 and 13

packages/openid4vc/package.json Show resolved Hide resolved
clientId,
credentialIssuer: metadata.issuer,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
endpointMetadata: metadata as unknown as any, // will be v11 / v13 based on version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does it need to be unknown? I rather not use it outside of tests. We can probably do something with an if / else statement to get the correct typing witout having to cast?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried it out, not sure but typing the metadata according to the version does not work quite well, and probably requires casts anyways so I would keep this

@TimoGlastra
Copy link
Contributor

Can you also add a changeset?

Signed-off-by: Martin Auer <martin.auer97@gmail.com>
…atibility

Signed-off-by: Martin Auer <martin.auer97@gmail.com>
Signed-off-by: Martin Auer <martin.auer97@gmail.com>
@auer-martin auer-martin marked this pull request as ready for review July 10, 2024 08:46
Signed-off-by: Martin Auer <martin.auer97@gmail.com>
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.

None yet

2 participants