vue-cheapauth
TypeScript icon, indicating that this package has built-in type declarations

0.0.9-alpha.0 • Public • Published

vue-cheapauth

vue-cheapauth [npm:version](https://www.npmjs.com/package/vue-cheapauth

Prepare

Should add vue-cheapauth into current project using by the npm or yarn.

yarn add vue-cheapauth
# npm i vue-cheapauth

Usage

Example of use in the below.

<template>
  <with-cheaauth
    :password="password"
    title="Authentication"
    submitLabel="Login"
  >
    <your-app-root />
  </with-cheapauth>
</template>

<script>
import cheapauth from 'vue-cheapauth';
import yourAppRoot from '...';

export default {
  components: {
    'with-cheapauth': cheapauth,
    'your-app-root': yourAppRoot
  },
  data() {
    return {
      password: process.env.LOGIN_PASSWORD
    }
  }
}
</script>

Edit @example/vue-cheapauth

Properties

The component with-cheapauth is required three properties password, title and submitLabel. title and submitLabel is just become to the text of title and button of authentication form. password is used for comparing that an user input one.

Package Sidebar

Install

npm i vue-cheapauth

Weekly Downloads

2

Version

0.0.9-alpha.0

License

MIT

Unpacked Size

146 kB

Total Files

13

Last publish

Collaborators

  • nju33