# @optix/vue-auth

> Easy vue authentication

Latest version **1.0.0** (published 2018-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @optix/vue-auth
pnpm add @optix/vue-auth
yarn add @optix/vue-auth
bun add @optix/vue-auth
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-07-30 |
| First published | 2018-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jack Robertson |
| Maintainers | jackrobertson, r1chm8 |

## Links

- npm: https://www.npmjs.com/package/@optix/vue-auth
- Repository: https://github.com/optixsolutions/vue-auth
- Homepage: https://github.com/optixsolutions/vue-auth#readme
- Issues: https://github.com/optixsolutions/vue-auth/issues
- npm.io page: https://npm.io/package/@optix/vue-auth

## Dependencies (1)

- [jwt-decode](https://npm.io/package/jwt-decode.md) ^2.2.0

## Recent versions

- 1.0.0 (latest) — 2018-07-30
- 1.0.0-alpha — 2018-07-09

## README

# Vue Auth

Easy client side authentication for your Vue applications.

## Installation

```bash
npm install @optix/vue-auth --save
```

```javascript
import Vue from 'vue';
import VueAuth from '@optix/vue-auth';

Vue.use(VueAuth);
```

## Usage

Accessing the auth object:

```javascript
// 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](LICENSE.md) for more information.

---
_Source: https://npm.io/package/@optix/vue-auth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
