minca
ApiCoreFunctions

Function: createMeshAuth()

function createMeshAuth(
   spaceId, 
   session, 
   read, 
   provider
): MeshAuth;

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

One side of the handshake between peers; read is, in a private space, the read key to prove with and the public half to check others against.

Parameters

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

Returns

MeshAuth

On this page