Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidToken = errors.New("That is not a valid token.")
Functions ¶
func AddMiddleware ¶
func CheckToken ¶
func CheckToken(jwt *JWTGen) func(echo.HandlerFunc) echo.HandlerFunc
func ConnectToDB ¶
ConnectToDB creates connection to database
Types ¶
type JWTGen ¶
func (*JWTGen) CreateToken ¶
CreateToken generates a token witht the given claims
Click to show internal directories.
Click to hide internal directories.