1.5.1 • Published 1 year ago
@moreillon/express_identification_middleware v1.5.1
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.5.1
1 year ago
1.4.0
1 year ago
1.3.6
1 year ago
1.3.5
2 years ago
1.3.4
2 years ago
1.3.3
2 years ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.2
3 years ago
1.2.0
3 years ago
1.2.1
3 years ago
1.1.0
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.2
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago