Documentation
¶
Overview ¶
Package auth provides functions for handling password hashing and JWT authentication
Index ¶
- func CheckPasswordHash(password, hash string) (bool, error)
- func GetAPIKey(headers http.Header) (string, error)
- func GetBearerToken(headers http.Header) (tokenString string, returnErr error)
- func HashPassword(password string) (string, error)
- func MakeJWT(userID uuid.UUID, method *jwt.SigningMethodHMAC, tokenSecret string, ...) (string, error)
- func MakeRefreshToken() (string, error)
- func ValidateJWT(tokenString, tokenSecret, algorithm string) (uuid.UUID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func GetBearerToken ¶
func HashPassword ¶
func MakeRefreshToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.