Avnology ID
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-widget

Usage

Options

OptionTypeRequiredDescription
elementHTMLElementYesMount target
apiBaseUrlstringYesGateway base URL
clientIdstringYesOAuth client ID
organizationIdstringNoRestrict to one org
returnTostringNoRedirect after success
onSuccess(session) => voidNo--
onError(err) => voidNo--
theme"light" | "dark" | "auto"NoDefault "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).