modulepackage
0.0.1
Repository: https://github.com/ntk148v/jwt-middleware.git
Documentation: pkg.go.dev
# README
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:
# Packages
No description provided by the author
# Functions
Authenticator verifies authentication provided in the request's header.
NewToken constructs a new Token instance.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author