# vue-sellsuki-auth

> vue-sellsuki-auth

Latest version **0.0.3** (published 2016-12-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-sellsuki-auth
pnpm add vue-sellsuki-auth
yarn add vue-sellsuki-auth
bun add vue-sellsuki-auth
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-12-28 |
| First published | 2016-12-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Runyasak Chaengnaimuang |
| Maintainers | n9ti |

## Links

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

## Recent versions

- 0.0.3 (latest) — 2016-12-28
- 0.0.2 — 2016-12-28
- 0.0.1 — 2016-12-28

## README

Sellsuki Auth
=============

Plugin for request authentication from Sellsuki login.

## Requirement
* vue
* vue-router

## Initiate

Initiate plugin by ```Vue.use``` after VueRouter with target url and router

```javascript
import Vue from 'vue'
import VueRouter from 'vue-router'
import SellsukiAuth from 'vue-sellsuki-auth'

...

var router = new VueRouter({
  routes: [
    { path: '/hello', component: Hello },
    { path: '*', redirect: Home }
  ]
})

Vue.use(SellsukiAuth, {target: 'loginURL', router: router})
```

## AuthChecker
Plugin will validate authentication from cookies in local

```javascript
router.beforeEach((to, from, next) => {
  Vue.prototype.$sellsuki_auth.authChecker(next)
})
```

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