Skip to content
API reference

tenancy/owner-key

Import
import * as api from "@fungi.computer/oyster/tenancy/owner-key";
Kind Export Description
type alias OwnerKeyRecord Stored owner verification material for one selected tenant.
type alias OwnerKeyOptions Live owner authority and host-held verification material.
function ownerKey() Reuse Oyster verification and admit only a current, explicitly stored owner.

OwnerKeyRecordtype alias

Section titled “OwnerKeyRecord”
Signature
type OwnerKeyRecord = Readonly<{
key: string;
memberId: string;
}>;

Stored owner verification material for one selected tenant.


OwnerKeyOptionstype alias

Section titled “OwnerKeyOptions”
Signature
type OwnerKeyOptions = Readonly<{
registry: Pick<ReadonlyTenantRegistry, "get">;
keys: Readonly<{
get: Promise<Readonly<{
key: string;
memberId: string;
}> | null>;
}>;
login?: Readonly<{
resolveTenant: ReadonlyTenancy["resolve"];
}>;
}>;

Live owner authority and host-held verification material.

Signature
function ownerKey(options): AuthAdapter;

Reuse Oyster verification and admit only a current, explicitly stored owner.

Parameter Type
options OwnerKeyOptions

AuthAdapter