Skip to content

Commit

Permalink
fix(openid4vc): pass client id (#1976)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra authored Aug 1, 2024
1 parent 91444e7 commit a093150
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sweet-dots-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@credo-ts/openid4vc": patch
---

fix: pass the `clientId` in the `requestCredentials` method from the API down to the service
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,14 @@ export class OpenId4VcHolderApi {
* @param options.tokenResponse Obtained through @see requestAccessToken
*/
public async requestCredentials(options: OpenId4VciRequestCredentialOptions) {
const { resolvedCredentialOffer, cNonce, accessToken, ...credentialRequestOptions } = options
const { resolvedCredentialOffer, cNonce, accessToken, clientId, ...credentialRequestOptions } = options

return this.openId4VciHolderService.acceptCredentialOffer(this.agentContext, {
resolvedCredentialOffer,
acceptCredentialOfferOptions: credentialRequestOptions,
accessToken,
cNonce,
clientId,
})
}

Expand Down

0 comments on commit a093150

Please sign in to comment.