Documentation ¶
Index ¶
Constants ¶
View Source
const (
TokenExpiredTime = 300
)
constants jwt
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func GenerateToken(payload interface{}) string
GenerateToken generate jwt token
func ValidateToken ¶
ValidateToken validate jwt token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.