Documentation ¶
Index ¶
- func ConvertUserToDTO(val *models.User) *dto.UserDTO
- func GenerateJWTToken(id string, ttl *time.Duration, privateKey string) (*models.TokenDetails, error)
- func HashPassword(password string) (string, error)
- func IsEmailValid(email string) bool
- func IsIncludesNonAscii(input *string) error
- func ValidatePassword(password, hash string) bool
- func ValidateToken(token string, publicKey string) (*models.TokenDetails, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWTToken ¶
func HashPassword ¶
func IsEmailValid ¶
func IsIncludesNonAscii ¶
func ValidatePassword ¶
func ValidateToken ¶
func ValidateToken(token string, publicKey string) (*models.TokenDetails, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.