@e280/authlocal
Version:
User-sovereign login system for everybody
17 lines (16 loc) • 548 B
TypeScript
import { Identity } from "../../trust/exports/authority.js";
/** the reason the management app was opened */
export declare namespace Purpose {
/** the app was opened for the user to manage their identities */
type Manage = {
kind: "manage";
};
/** the app was opened for the user to select a identity to login with */
type Login = {
kind: "login";
appOrigin: string;
onDeny: () => Promise<void>;
onIdentity: (identity: Identity) => Promise<void>;
};
type Any = Manage | Login;
}