HTTP authentication components
npm install quasar-ui-http-authentication

Install the App Extension.
``js`
...
// setup Vue app
...
import VuePlugin from "quasar-ui-http-authentication";
app.use(VuePlugin)
Make sure your Quasar app is setup correctly.
`js
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.
You can change the language used with loadLang:
`js
import { loadLang } from 'quasar-ui-http-authentication'
loadLang('nl')
`
Functions to open dialogs, set cookies etc can also be imported:
`js``
import { useLang, verificationRequiredDialog } from 'quasar-ui-http-authentication'
import { useQuasar } from 'quasar'
...
setup () {
const lang = useLang()
const $q = useQuasar()
verificationRequiredDialog($q, {}, lang)
}
If you appreciate the work that went into this, please consider donating to Quasar.
MIT (c) Stefan van Herwijnen