# octoplus-login-portal

> login portal for octoplus (auth0)

Latest version **0.1.0** (published 2021-09-16) · 0 weekly downloads

## Install

```sh
npm install octoplus-login-portal
pnpm add octoplus-login-portal
yarn add octoplus-login-portal
bun add octoplus-login-portal
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2021-09-16 |
| First published | 2021-09-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.4 MB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | yes |
| Author | suphakorn |
| Maintainers | suphakorn.sellsuki |

## Links

- npm: https://www.npmjs.com/package/octoplus-login-portal
- npm.io page: https://npm.io/package/octoplus-login-portal

## Dependencies (2)

- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [auth0-js](https://npm.io/package/auth0-js.md) 9.10.2

## Recent versions

- 0.1.0 (latest) — 2021-09-16

## README

## Quick start

### 1. Install via npm

```bash
npm install akita-login-portal --save
```
### 2. Make file config at root folder (./akt-lp.config.js)

```javascript
// akt-lp.config.js
const APP_TOKEN = {
  production: 'b21xxxxxxxxxxxxxxxxxxxx==',
  staging: 'b21xxxxxxxxxxxxxxxxxxxx==',
  development: 'b21xxxxxxxxxxxxxxxxxxx=='
}

const AkitaLoginConfig = {
  env: 'development', // your app env (development, staging, production)
  APP_NAME: 'pos',
  APP_TOKEN, // your app basic token
  production: { // require
    DOMAIN: 'wanwantip-prd.auth0.com',
    CLIENT_ID: 'xxXXxxXXxxXXxxXXxxXXxx'
  },
  staging: { // optional
    DOMAIN: 'wanwantip-stg.auth0.com',
    CLIENT_ID: 'xxXXxxXXxxXXxxXXxxXXxx'
  },
  development: { // require
    DOMAIN: "wanwantip-dev.auth0.com",
    CLIENT_ID: "xxXXxxXXxxXXxxXXxxXXxx",
  }
}

module.exports = AkitaLoginConfig

```

### 3. Import and use

```javascript
// main.js

import Vue from 'vue'
import router from './router' // Your app router
import AkitaLoginPortal from 'akita-login-portal'
import AkitaLoginConfig from './akt-lp.config'

Vue.use(AkitaLoginPortal, {
  router,
  AkitaLoginConfig
})

```
### LOGOUT

```javascript
// when logout use plugin to clear state
this.$auth.logout()

```

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