package
Version:
v0.0.0-...-1561af3
Opens a new window with list of versions in this module.
Published: Feb 17, 2022
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Contexter(next echo.HandlerFunc) echo.HandlerFunc
func ValidateToken() echo.MiddlewareFunc
type Claims struct {
FullName string `json:"full_name"`
UserCode string `json:"user_code"`
Role string `json:"role"`
jwt.StandardClaims
}
Create a struct that will be encoded to a JWT.
We add jwt.StandardClaims as an embedded type, to provide fields like expiry time.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.