Skip to content

ntk148v/jwt-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT Middleware

1. Intro

A middleware that will check that a JWT is sent on the request header (the header key is customizable) and will then set the content of the JWT into the context.

This module lets you authenticate HTTP requests using JWT tokens in your Go Programming Language applications.

2. Key features

  • Ability to check the request header for a JWT.
  • Decode the JWT and set the content of it to the request context.
  • Generate the token string for login handler.

3. Installation

go get github.com/ntk148v/jwt-middleware

4. Examples

You can check out working examples in the examples folder for the basic usage.

5. References

This module is strong inspired by:

About

JWT-based Authentication Middleware

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages