Documentation ¶
Index ¶
- Variables
- func Encrypt(key string, cost int) (hashed string, err error)
- func GenerateTokenWithRefresh(email string, firstName string, userType string, uid string) (signedToken string, signedRefreshToken string, err error)
- func IsValidPassword(original, hashed string) bool
- func ValidateToken(signedToken string) (claims *models.SignedDetails, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SECRET = "go-cart.com.007"
Functions ¶
func IsValidPassword ¶
IsValidPassword return true if password matched, else false
func ValidateToken ¶
func ValidateToken(signedToken string) (claims *models.SignedDetails, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.