Skip to content

A package for ensuring bearer token is available in the header of the HTTP Request using Express

License

Notifications You must be signed in to change notification settings

Ethern-Myth/ensure-token

Repository files navigation

Ensure Token

A package for ensuring bearer token is available in the header of the HTTP Request using Express

npm downloads


NPM

Installation

 npm install ensure-token --save
 OR
 yarn add ensure-token
 OR
 pnpm install ensure-token

Usage

javascript or typescript

 import { ensureToken } from 'ensure-token'; 

Add the ensureToken in your route like this:

app.get('/your-route', ensureToken, (req, res) => {

})

This will work on bearer tokens only for now. More Verifications will be added later.

Don't forget to like this repo. If you have any questions feel free to ask!

Created by Ethern Myth

Licensed under the MIT license.


Last updated 18/02/2024.

About

A package for ensuring bearer token is available in the header of the HTTP Request using Express

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published