Usage
Quasar CLI project
Install the App Extension.
Vue Plugin
...
// setup Vue app
...
import VuePlugin from "quasar-ui-http-authentication";
app.use(VuePlugin)
Import directly
Make sure your Quasar app is setup correctly.
import {
LoginComponent,
RegisterComponent,
PasswordResetComponent,
PasswordForgotComponent
} from 'quasar-ui-http-authentication'
export default defineComponent({
components: {
LoginComponent
// any other components you wish to use
}
})
You can now use the components in the template.
Language
You can change the language used with loadLang
:
import { loadLang } from 'quasar-ui-http-authentication'
loadLang('nl')
Helper functions
Functions to open dialogs, set cookies etc can also be imported:
import { useLang, verificationRequiredDialog } from 'quasar-ui-http-authentication'
import { useQuasar } from 'quasar'
...
setup () {
const lang = useLang()
const $q = useQuasar()
verificationRequiredDialog($q, {}, lang)
}
Donate
If you appreciate the work that went into this, please consider donating to Quasar.
License
MIT (c) Stefan van Herwijnen