Vue 3 Plugin and Native HTML Web Components used for KAuth UI implementation in Kong apps
npm install @kong/kong-auth-elementsVue 3 Plugin and Native HTML Web Components used for KAuth UI implementation in Kong apps


- @kong/kong-auth-elements
- Installation
- npm
- CDN
- CDN Example
- Usage
- Vue 3 Plugin
- Vue 2 or no framework via native web components
- Teleport Wrapper
- Options
- TypeScript
- Custom Error Handler
- Inject CSS
- Events
- Theming with CSS Variables
- Webpack
- Testing in your app
- Cypress
- Custom Elements
- kong-auth-login
- Props
- Emits Events
- Query String Parameters
- IdP Login
- Auto-initialization
- userEntity = 'user'
- userEntity = 'developer'
- Logging back in
- kong-auth-forgot-password
- Props
- Emits Events
- kong-auth-reset-password
- Props
- Emits Events
- Query String Parameters
- kong-auth-change-password
- Props
- Emits Events
- kong-auth-register
- Props
- Query String Parameters
- Emits Events
- kong-auth-accept-invitation
- Props
- Emits Events
- Query String Parameters
- Contributing
- Creating a New Custom Element
- Requirements
- Custom Element Styles and the shadow DOM
- Committing Changes
- Enforcing Commit Format
- Local Development
- Configure Environment Variables
- Install dependencies
- Components Sandbox
- Compile Components and hot-reload for development
- Build Components Sandbox and preview
- Elements Sandbox
- Compile Custom Elements and hot-reload for development
- Build Elements Sandbox and preview
- Web Components Sandbox
- Build Web Components Sandbox and preview
- Compile and minify for production
- Link the local @kong/kong-auth-elements package into another local project for testing
- Current Issues
- Props
- Axios
Install the package as a dependency in your app
``sh`
yarn add @kong/kong-auth-elements
The default exports have a bundle filename of *.vue.{umd|es}.js where we internalize Vue for consumption by the plugin (i.e. the bundle includes the Vue core).
We also provide kong-auth-elements.{umd|es}.js bundles that do NOT internalize (bundle) the Vue core along with it. These bundles can can be imported via