1.0.1 • Published 11 months ago

@podiceps/auth v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Podiceps auth middleware

wait for login before request

$ npm i @podiceps/auth -S

Usage

import auth from '@podiceps/auth'

const { login, logout, middleware } = auth()

podiceps.use([middleware])

login() // after login, start request

logout() // logout

// ignore login config
import Podiceps from '@podiceps/core'

const configs = {
  next: {
    path: '/next',
    login: false, // not need login to request
  },
}
1.0.1

11 months ago

1.0.0

2 years ago

0.2.1

2 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago