Documentation ¶
Index ¶
- Variables
- func CheckPasswordHash(password, hash string) error
- func GetBearerToken(headers http.Header) (string, error)
- func HashPassword(password string) (string, error)
- func MakeJWT(userID int, tokenSecret string, expiresIn time.Duration) (string, error)
- func ValidateJWT(tokenString, tokenSecret string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAuthHeaderIncluded = errors.New("not auth header included in request")
ErrNoAuthHeaderIncluded -
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.