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

Flip parameter order of generateOpenid4vciProof to match sibling functions #193

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

emlun
Copy link
Member

@emlun emlun commented Mar 14, 2024

Both createIdToken and signJwtPresentation have the parameter order nonce, audience, but generateOpenid4vciProof has parameter order audience, nonce. Both parameters have the same type, so the type system wouldn't catch a mistake passing arguments in reverse order. This change flips the parameter order to be the same between all three functions, lowering the risk of such a mistake.

@pstamatop pstamatop requested review from kkmanos and pstamatop and removed request for kkmanos March 27, 2024 09:22
@emlun emlun merged commit f837907 into master Mar 27, 2024
2 checks passed
@emlun emlun deleted the generate-proof-param-order branch March 27, 2024 12:21
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.

2 participants