@optix/vue-auth

1.0.0 • Public • Published

Vue Auth

Easy client side authentication for your Vue applications.

Installation

npm install @optix/vue-auth --save
import Vue from 'vue';
import VueAuth from '@optix/vue-auth';

Vue.use(VueAuth);

Usage

Accessing the auth object:

// Globally
Vue.auth.token();

// On an instance
this.$auth.token();

Methods

  • setToken(token)
  • token()
  • hasToken()
  • removeToken()
  • setUser(user)
  • user()
  • removeUser()
  • check()

License

The MIT License (MIT). Please see License File for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i @optix/vue-auth

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

3.47 kB

Total Files

5

Last publish

Collaborators

  • jackrobertson
  • r1chm8