minca
ApiCoreFunctions

Function: createClientAuth()

function createClientAuth(
   spaceId, 
   session, 
   read, 
   provider
): ClientAuth;

Defined in: packages/core/src/network/peer-auth.ts:232

The client side. spaceId is bound into every signature, so a proof for one space is useless in another; read is how it proves it may read a private space (or just the read key, deriveReadKey), null in a public one.

Parameters

ParameterType
spaceIdstring
session{ did: string; key: CryptoKey; }
session.didstring
session.keyCryptoKey
read| ReadAccess | { privateKey: CryptoKey; } | null
providerCryptoProvider

Returns

ClientAuth

On this page