1.0.20 • Published 2 years ago

express-auth-guard v1.0.20

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Express Auth Guard

It will help to check whether the user is logged in or not in your express js application.

How to install

npm i express-auth-guard

How to use

:warning: **Please provide correct JWT_SECRET_KEY.

const authGuard = require('express-auth-guard'); 

let jwt_secret_key='slkdfjoapifjaksjasifaoidflak';

router.get('/', authGuard(jwt_secret_key), (req,res)=>{
    res.statu(200).json({
        msg:"Ok"
    })
});

Get Token Information

console.log(req.user);

Powered by https://fb.com/habibur.rahman.sobuj.bd

1.0.20

2 years ago

1.0.19

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago