idp2p

The idp2p library is the main interface for interacting with user data for developers that are building apps on IDX. It creates a simple interface for getting and updating data associated with a DID, using the DID Provider.

Initialization

**Idp2p.create(opts?): Promise<Idp2p>**

Creates an instance of the idp2p library.

Params:

**idp2p.auth(paths: Array<string>, opts?: any): Promise<void>**

Params:

idp2p.user: DID

A js-did instance for the authenticated user. Throws error if idp2p.auth has not been called.

**idp2p.ceramic: CeramicApi**

The CeramicApi instance currently being used.

**idp2p.threeIdConnect: ThreeIdConnect**