Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
GenerateToken generates a JWT token for the provided user.
func HashPassword ¶
HashPassword hashes the user's password using bcrypt.
func ValidateToken ¶
ValidateToken validates the JWT token provided in the request headers.
func VerifyPassword ¶
VerifyPassword compares a password with a hashed password.
Types ¶
Click to show internal directories.
Click to hide internal directories.