utils

package
v0.0.0-...-2073f86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashedPassword

func CompareHashedPassword(password, hashedPassword string) bool

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

func GenerateRandomString

func GenerateRandomString(n int) (string, error)

func GetCost

func GetCost() int

func GetJWTLifespan

func GetJWTLifespan() int

func GetJWTSecret

func GetJWTSecret() ([]byte, error)

func GetUserFromContext

func GetUserFromContext(c *fiber.Ctx) (*models.User, error)

func HashPassword

func HashPassword(password string) (string, error)

func UserSignedClaims

func UserSignedClaims(user *models.User) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL