Components
LoginWidget
Standalone npm package for non-React apps (Vue, Svelte, vanilla JS).
@avnology/login-widget
A framework-agnostic login widget that mounts into any DOM node. Separate npm package (not a React component). Use it when your app is Vue, Svelte, Angular, or plain JS and you want a maintained sign-in surface without reinventing the flow.
Install
npm install @avnology/login-widgetUsage
Options
| Option | Type | Required | Description |
|---|---|---|---|
element | HTMLElement | Yes | Mount target |
apiBaseUrl | string | Yes | Gateway base URL |
clientId | string | Yes | OAuth client ID |
organizationId | string | No | Restrict to one org |
returnTo | string | No | Redirect after success |
onSuccess | (session) => void | No | -- |
onError | (err) => void | No | -- |
theme | "light" | "dark" | "auto" | No | Default "auto" |
Distribution
v1.0 is npm-only. No UMD / CDN distribution -- the design decision was logged in 2026-04-16 research. Bundle via your app's bundler (Vite, Webpack, Rollup, esbuild).