Documentation
¶
Index ¶
- func CheckPassword(password string, hash string) bool
- func CreateToken(claims map[string]interface{}) (string, error)
- func HashPassword(password string) string
- func Login(input LoginInput, t string) (string, error)
- func NewTokenAuth() *jwtauth.JWTAuth
- func VerifyToken(tokenString string) bool
- type LoginInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func CreateToken ¶
func HashPassword ¶
func NewTokenAuth ¶
func NewTokenAuth() *jwtauth.JWTAuth
func VerifyToken ¶
Types ¶
type LoginInput ¶
Click to show internal directories.
Click to hide internal directories.