minca
ApiCoreFunctions

Function: createServerAuth()

function createServerAuth(
   spaceId, 
   read, 
   nodeKey, 
   provider, 
   note?
): ServerAuth;

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

The node side, which needs no secret of the space's: read is who may read a private space, or just its public read key.

Parameters

ParameterType
spaceIdstring
readstring | ReadAccess | null
nodeKeyCryptoKey
providerCryptoProvider
note?() => Delegation | null

Returns

ServerAuth

On this page