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

use tokenIndex #40

Open
moratori opened this issue Dec 9, 2024 · 0 comments
Open

use tokenIndex #40

moratori opened this issue Dec 9, 2024 · 0 comments

Comments

@moratori
Copy link
Member

moratori commented Dec 9, 2024

The tokenIndex parameter should be used as the argument to createVpTokenFor*.

let tokenIndex = isMultipleVpTokens ? index : index - 1
switch credential.format {
case "vc+sd-jwt":
return
try credential.createVpTokenForSdJwtVc(
clientId: clientId,
nonce: nonce,
tokenIndex: index,
keyBinding: keyBinding)
case "jwt_vc_json":
return
try credential.createVpTokenForJwtVc(
clientId: clientId,
nonce: nonce,
tokenIndex: index,

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

No branches or pull requests

1 participant