Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <timo@animo.id>
  • Loading branch information
TimoGlastra committed Jun 4, 2024
1 parent b2a46b8 commit d71a591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/updating/versions/0.4-to-0.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const agent = new Agent({

<!--/tabs-->

Next, update your credential receiving logic to first resolve the credential offer (using `agent.modules.openId4VcHolder.resolverCredentialOffer`), and then accept the credential offer (using `agent.modules.openId4VcHolder.acceptCredentialOfferUsingPreAuthorizedCode`).
Next, update your credential receiving logic to first resolve the credential offer (using `agent.modules.openId4VcHolder.resolveCredentialOffer`), and then accept the credential offer (using `agent.modules.openId4VcHolder.acceptCredentialOfferUsingPreAuthorizedCode`).

<!--tabs-->

Expand Down Expand Up @@ -292,7 +292,7 @@ import { OpenId4VciCredentialFormatProfile } from '@credo-ts/openid4vc'
// Example uri
const data = 'openid-credential-offer://?credential_offer_uri=...'

const resolvedCredentialOffer = await agent.modules.openId4VcHolder.resolverCredentialOffer(data)
const resolvedCredentialOffer = await agent.modules.openId4VcHolder.resolveCredentialOffer(data)

await agent.modules.openId4VcHolder.acceptCredentialOfferUsingPreAuthorizedCode(
// First parameter is now the resolved credential offer
Expand Down

0 comments on commit d71a591

Please sign in to comment.