quasar-ui-http-authentication
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

npm npm

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

Readme

Keywords

none

Package Sidebar

Install

npm i quasar-ui-http-authentication

Weekly Downloads

20

Version

3.0.0

License

MIT

Unpacked Size

122 kB

Total Files

44

Last publish

Collaborators

  • stefanvh