package
Version:
v0.0.0-...-3bb274c
Opens a new window with list of versions in this module.
Published: May 5, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewJWTAuthMiddleware() echo.MiddlewareFunc
type JWTClaims struct {
User
jwt.StandardClaims
}
type User struct {
Username string `json:"username"`
UserID string `json:"user_id"`
UserEmail string `json:"email"`
}
func GetAuthUser(c echo.Context) (*User, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.