create-express-auth-middleware
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "create-express-auth-middleware", | ||
"description": "Library to create Express JS authentication and authorization middlewares", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "./dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "./dist", |
@@ -19,3 +19,3 @@ # create-express-auth-middleware | ||
2. If an API call is made with a valid token, you can access the decoded token object from request | ||
2. Create Express app with predicate based authentication and authorization middlewares | ||
```js | ||
@@ -26,3 +26,3 @@ const app = require("express")(); | ||
// Make all routes in this express app to be authentication protected. | ||
// Meaning all routes defined later can only be called if a valid JWT is provided. | ||
// Meaning all routes defined later can only be called if the request passes this predicate function | ||
// This DOES NOT mean that routes are fully protected yet, | ||
@@ -69,3 +69,3 @@ // as you need to ensure users have sufficient permission to access APIs using authorization middleware. | ||
Integrations available | ||
- [Firebase Auth](https://github.com/Enkel-Digital/firebase-auth-express-middleware/) | ||
- [Firebase Auth](https://github.com/Enkel-Digital/firebase-authentication) | ||
@@ -72,0 +72,0 @@ |
9184