diff --git a/README.md b/README.md index 6e3f97e..718bfdb 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# express-mjwt +# express-middleware-jwt This module provides ExpressJs middleware to validate JWT via the [jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken) module. ## Install ``` -$ npm install express-mjwt +$ npm install express-middleware-jwt ``` ## API @@ -27,7 +27,7 @@ Options has the following parameters: Basic usage using an HS256 secret: ```javascript -import { authJwt } from 'express-mjwt'; +import { authJwt } from 'express-middleware-jwt'; app.get( '/protected', @@ -58,11 +58,11 @@ authJwt({ ## Typescript -A `JWTRequest` type is provided from `express-mjwt`, which extends `express.Request` with the `auth` property. I +A `JWTRequest` type is provided from `express-middleware-jwt`, which extends `express.Request` with the `auth` property. I ```typescript import { Response } from 'express'; -import { authJwt, JWTRequest } from 'express-mjwt'; +import { authJwt, JWTRequest } from 'express-middleware-jwt'; app.get( "/protected", diff --git a/package-lock.json b/package-lock.json index c469fb7..584c324 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "express-mjwt", + "name": "express-middleware-jwt", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "express-mjwt", + "name": "express-middleware-jwt", "version": "1.0.0", "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index a60bca6..b84acd2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "express-mjwt", + "name": "express-middleware-jwt", "version": "1.0.0", "description": "jwt authentication middleware for ExpressJS", "keywords": ["auth", "authentication", "jwt", "jsonwebtoken" ,"token", "express"],