@moreillon/vue_authentication_wall_vuetify
v1.1.2
Published
This components forces users to login before getting access to the main content of a VueJS app.
Downloads
9
Readme
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>