@atscript/vue-aooth
v0.1.102
Published
Custom form components for the Aooth auth system, built on @atscript/vue-form
Downloads
3,665
Maintainers
Readme
@atscript/vue-aooth
📚 Documentation: ui.atscript.dev
Custom Vue 3 form-field components for Aooth-driven consent collection and password-policy display. Drops into <AsForm :components> from @atscript/vue-form.
Part of the atscript-ui monorepo.
What it provides
AsConsentArray— multi-consent checkbox group bound to astring[]. Items arrive via@ui.form.fn.attras{ id, text, required? }. Markdown[label](url)links in consent text are sanitized tohttp(s):///mailto:only.AsPasswordRules— display-only readout of policy fulfilment. Each{ rule, description? }rule string is evaluated throughcompileFieldFnfrom@atscript/ui-fnsagainst the live password.- Both implement the
TAsComponentPropscontract from@atscript/vue-form— wire via<AsForm :components>and@ui.form.component.
Install
pnpm add @atscript/vue-aoothPeer requirements: vue@^3, @atscript/vue-form, @atscript/ui-fns, @atscript/ui-styles.
Why a separate package
These components are Aooth-specific UX. Shipping them inside @atscript/vue-form would force consent chrome and password-rule machinery on every consumer who doesn't run auth flows. Apps that do — typically alongside @atscript/vue-wf — pull this package in on top.
License
MIT © Artem Maltsev
