@e280/authlocal
Version:
User-sovereign login system for everybody
11 lines (10 loc) • 479 B
TypeScript
import { Session } from "../concepts/session/types.js";
export type AppFns = {
v1: {
/** the authority popup calls the host when it's ready, asking for the appOrigin */
hello(): Promise<void>;
/** the authority popup calls this app-side-function when the user has authorized a login */
login: (session: Session | null) => Promise<void>;
};
};
export declare const makeAppFns: (login: (session: Session | null) => Promise<void>) => AppFns;