========== PKP ==========

Hierarchy

Implements

Constructors

Properties

defaultAuthCallback?: ((authSigParams: AuthCallbackParams) => Promise<AuthSig>)

Type declaration

Methods

  • Retrieves the fallback IPFS code for a given IPFS ID.

    Returns

    The base64-encoded fallback IPFS code.

    Throws

    An error if the code retrieval fails.

    Parameters

    • gatewayUrl: string

      the gateway url.

    • ipfsId: string

      The IPFS ID.

    Returns Promise<any>

  • Check if a session key needs to be resigned. These are the scenarios where a session key needs to be resigned:

    1. The authSig.sig does not verify successfully against the authSig.signedMessage
    2. The authSig.signedMessage.uri does not match the sessionKeyUri
    3. The authSig.signedMessage does not contain at least one session capability object

    Parameters

    Returns Promise<boolean>

Generated using TypeDoc