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.
**Idp2p.create(opts?): Promise<Idp2p>
**
Creates an instance of the idp2p library.
Params:
opts.ceramic
- the CeramicApi instance to use**idp2p.auth(paths: Array<string>, opts?: any): Promise<void>**
Params:
paths
- the paths that will be authenticated for read / writeopts.provider
- a blockchain provider used to auth with 3ID connect, or a DID provideridp2p.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**