Documentation ¶
Index ¶
- func GenerateJWT(id string, targetRole string) *string
- func GenerateRandomCode(max_digits int) (string, error)
- func GetFieldFromJWT(tokenString string, field string) (string, error)
- func GetJWTFromRequest(w http.ResponseWriter, r *http.Request) *string
- func HashPassword(password string) (string, error)
- func ValidateJWT(tokenString string) bool
- func VerifyPassword(bodyPassword string, hashedPassword string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWT ¶
func GenerateRandomCode ¶
func GetJWTFromRequest ¶
func GetJWTFromRequest(w http.ResponseWriter, r *http.Request) *string
func HashPassword ¶
func ValidateJWT ¶
func VerifyPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.