1.4.0 • Published 12 days ago

@moreillon/express_identification_middleware v1.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
12 days ago

Express identification middleware

An expres middlewware to identify users from their HTTP requests.

Usage

import express from "express"
import auth from "@moreillon/express_identification_middleware"

const app = express()
const authOptions = { url: `https://api.users.maximemoreillon.com/users/self` }

app.use(auth(options))

app.listen(8080, () => {
  console.log(`Express server started`)
})

Options

  • url: The URL of the identification route of the authentication API
  • lax: Boolean, set to true to allow unidentified users
1.4.0

12 days ago

1.3.6

3 months ago

1.3.5

6 months ago

1.3.4

6 months ago

1.3.3

9 months ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.2

2 years ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago