Skip to content

optixsolutions/vue-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published