Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/mod.deno.ts>AuthorisationScheme

Exploring Willow in the most efficient and sound programming language
Go to Latest
type alias AuthorisationScheme
Re-export
import { type AuthorisationScheme } from "https://deno.land/x/willow@0.2.1/mod.deno.ts";

Configures the AuthorisationToken and is_authorised_write parameters of the Willow data model, used to restrict write access to a Willow data store.

Type Parameters

NamespaceId
SubspaceId
PayloadDigest
AuthorisationOpts
AuthorisationToken
definition: { isAuthorisedWrite: (entry: Entry<NamespaceId, SubspaceId, PayloadDigest>, token: AuthorisationToken) => Promise<boolean>; tokenEncoding: EncodingScheme<AuthorisationToken>; authorise(entry: Entry<NamespaceId, SubspaceId, PayloadDigest>, opts: AuthorisationOpts): Promise<AuthorisationToken>; }