Skip to content

Commit

Permalink
chore: IDENTIFIER_CREATED emit managed identifier (revert this.onIden…
Browse files Browse the repository at this point in the history
…tifierCreated?.(event.data), change was not needed)
  • Loading branch information
sanderPostma committed Nov 4, 2024
1 parent dff5087 commit 8114196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/oid4vci-holder/src/agent/OID4VCIHolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export class OID4VCIHolder implements IAgentPlugin {
this.onCredentialStored?.(event.data)
break
case OID4VCIHolderEvent.IDENTIFIER_CREATED:
this.onIdentifierCreated?.({ identifier: event.data })
this.onIdentifierCreated?.(event.data)
break
default:
return Promise.reject(Error(`Event type ${event.type} not supported`))
Expand Down
2 changes: 1 addition & 1 deletion packages/oid4vci-holder/src/agent/OID4VCIHolderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export const getIdentifierOpts = async (args: GetIdentifierArgs): Promise<Manage
offlineWhenNoDIDRegistered: result.did.startsWith('did:ebsi:'),
})
if (created) {
await agentContext.agent.emit(OID4VCIHolderEvent.IDENTIFIER_CREATED, identifier)
await agentContext.agent.emit(OID4VCIHolderEvent.IDENTIFIER_CREATED, { identifier })
}
} else if (supportedBindingMethods.includes('jwk')) {
// todo: we probably should do something similar as with DIDs for re-use/new keys
Expand Down

0 comments on commit 8114196

Please sign in to comment.