1.0.4 • Published 7 years ago

nocebo-express-auth-validator v1.0.4

Weekly downloads
4
License
UNLICENCED
Repository
github
Last release
7 years ago

Express Request Filter

Handles JWT authorization and schema validation on express request.

Requirements

Needs harmony to be set when used:

node --harmony

Setup

Options:

jwtSecret: String | Secret to sign JWT with

schema: String | JSON Schema

Example:

{
  jwtSecret: "lKTGC6H8hJvgyTKk+h4zyxTUDh55Lm+2oe+TIBZIh8k=",
  schema: {
    "type": "object",
    "properties": {
      "title": {
        "type": "string"
      }
    },
    "required": ["title"]
  }
}

Test

To run unit tests:

npm test
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago