@e280/authlocal
Version:
User-sovereign login system for everybody
15 lines • 531 B
JavaScript
import { register } from "@benev/slate";
import { Auth } from "./auth.js";
import { appElements } from "./elements/elements.js";
import { commonElements } from "../common/elements/elements.js";
export async function prepareElements(auth) {
return { ...commonElements, ...appElements(auth) };
}
export async function install(options) {
const auth = new Auth(options);
const elements = await prepareElements(auth);
await auth.loadLogin();
register(elements);
return auth;
}
//# sourceMappingURL=install.js.map