Skip to content

Commit

Permalink
update package name
Browse files Browse the repository at this point in the history
  • Loading branch information
adeiskandarzulkarnaen committed Dec 1, 2024
1 parent 3fce13d commit fac7d86
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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',
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down

0 comments on commit fac7d86

Please sign in to comment.