utils

package
v0.0.0-...-19946b9 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

Compare a plain-text password with a hashed password

func ExtractClaimsFromToken

func ExtractClaimsFromToken(tokenString string) (jwt.MapClaims, error)

func GenerateToken

func GenerateToken(userID uuid.UUID, userEmail string) (string, error)

Generate Auth token for user with his UUID

func HashPassword

func HashPassword(password string) (string, error)

Hashe a plain-text password

func VerifyToken

func VerifyToken(tokenString string) (jwt.MapClaims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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