Offers a login method, the BusieAuthPlugin for Vue, and an embedLogin function to embed login functionality directly into the dom.
npm install --save busie-auth
// Other imports (including Vue import) redacted for brevity import { BusieAuthPlugin } from 'busie-auth' Vue.use(BusieAuthPlugin, { token: '', url: , onLoginSuccess: })
Provided to you by a busie-auth admin.
The appropriate url for your desired environment (staging, production, etc.)
A callback to handle login success. should accept LoginSuccess event
A custom event who's handler is delegated to the onLoginSuccess callback
import { embedLogin } from 'busie-auth' embedLogin(, , , )
The #id of the element which is to have the auth flow mounted
See Above Usage for BusieAuthPlugin
See Above Usage for BusieAuthPlugin
See Above Usage for BusieAuthPlugin
import { login } from 'busie-auth' login(, { , }).then(/* Do something */)
See Above Usage for BusieAuthPlugin
The desired username to login with
The password to login with