Documentation
¶
Index ¶
- func AuthEmail(otp string) string
- func CheckPasswordHash(password, hash string) bool
- func GenerateJWT(id, email, profileId string, verified bool) (string, error)
- func HashPassword(password string) (string, error)
- func InternalServerError(w http.ResponseWriter, message string)
- func InvalidInput(w http.ResponseWriter, message ...string)
- func UnAuthorized(w http.ResponseWriter, message string)
- func ValidateJWT(tokenString string) (string, string, string, bool, error)
- func WrongMethod(w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
func InternalServerError ¶
func InternalServerError(w http.ResponseWriter, message string)
func InvalidInput ¶
func InvalidInput(w http.ResponseWriter, message ...string)
func UnAuthorized ¶
func UnAuthorized(w http.ResponseWriter, message string)
func WrongMethod ¶
func WrongMethod(w http.ResponseWriter)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.