Documentation ¶
Index ¶
- func CompareHashedPassword(password, hashedPassword string) bool
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(n int) (string, error)
- func GetCost() int
- func GetJWTLifespan() int
- func GetJWTSecret() ([]byte, error)
- func GetUserFromContext(c *fiber.Ctx) (*models.User, error)
- func HashPassword(password string) (string, error)
- func UserSignedClaims(user *models.User) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHashedPassword ¶
func GenerateRandomBytes ¶
func GenerateRandomString ¶
func GetJWTLifespan ¶
func GetJWTLifespan() int
func GetJWTSecret ¶
func GetUserFromContext ¶
func HashPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.