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