Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 721 Bytes

2-connections.md

File metadata and controls

28 lines (21 loc) · 721 Bytes

Connections

TODO

  • Creating a connection (as inviter or invitee)
  • Mention the need for a mediator (2-routing) if using in react native

If you want to start issuing and verifying credentials, you need a connection first. This connection can be created by the inviter or invitee.

When using React Native a mediator is required 3. Routing.

Creating an invitation

const { invitation, connectionRecord } = await agent.connections.createConnection({
  autoAcceptConnection: true,
  alias: 'inviter',
})

Receiving an invitation

const { connectionRecord } = await agent.connections.receiveInvitation(invitation, {
  autoAcceptConnection: true,
  alias: 'invitee',
})