Function createAuthentication

  • Returns a JSON-AD resource of an Authentication

    Parameters

    • subject: string
    • agent: Agent

    Returns Promise<{
        https://atomicdata.dev/properties/auth/agent: string;
        https://atomicdata.dev/properties/auth/publicKey: string;
        https://atomicdata.dev/properties/auth/requestedSubject: string;
        https://atomicdata.dev/properties/auth/signature: string;
        https://atomicdata.dev/properties/auth/timestamp: number;
    }>

Generated using TypeDoc