Versions in this module Expand all Collapse all v1 v1.1.0 Aug 5, 2020 Changes in this version + func Authenticator(c *gin.Context) (claims jwt.MapClaims, err error) + func ComparePasswords(hashedPwd string, plainPwd []byte) bool + func GenerateHash(password string) string + func GenerateToken(c *gin.Context, id string, write, delete bool) (t string, rt string, tExp int64, err error) + func GenerateUniqueCode(max int) (string, error) + func HashAndSalt(pwd []byte) string + func HashCompare(password, hashedPwd string) bool + func RefreshAuthenticator(c *gin.Context) (string, error) + type Refresher struct + Exp int64 + IPAddress string + UserUUID string