Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsLoggedIn = middleware.JWTWithConfig( middleware.JWTConfig{ SigningKey: GetJwtSecretKey(), ContextKey: "user", TokenLookup: "header:Authorization", AuthScheme: "Bearer", Claims: jwt.MapClaims{}, })
Functions ¶
func GenerateTokenPair ¶
func GetJwtSecretKey ¶
func GetJwtSecretKey() []byte
on this function why load .env because handler function on echo reload before func init on main.go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.