@moreillon/vue_authentication_wall_vuetify

1.1.2 • Public • Published

Vue Authentication wall (Vuetify)

This components forces users to login before getting access to the main content of a VueJS app.

Usage

<template>
  <v-app>
    <v-main>
      <AuthenticationWall
        :options="options"
        @user="get_user($event)">
        <router-view/>
      </AuthenticationWall>
    </v-main>
  </v-app>
</template>

<script>
import AuthenticationWall from '@moreillon/vue_authentication_wall_vuetify'
export default {
  name: 'App',
  components: {
    AuthenticationWall
  },
  data: () => ({
    options: {
      login_url: 'LOGIN URL',
      identification_url: 'IDENTIFICATION URL',
    }
  }),
  methods: {
    get_user(user){
      // dom something with the user
    }
  }

}
</script>

Readme

Keywords

none

Package Sidebar

Install

npm i @moreillon/vue_authentication_wall_vuetify

Weekly Downloads

1

Version

1.1.2

License

none

Unpacked Size

88.5 kB

Total Files

25

Last publish

Collaborators

  • moreillon