helper

package
v0.0.0-...-644249d Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(hashPassword string, password string) error

func GetLoginUser

func GetLoginUser(ctx *gin.Context) (model.ServiceResponse, error)

func HashPassword

func HashPassword(password string) (string, error)

func SignJWTToken

func SignJWTToken(userID uuid.UUID) (string, error)

func ValidateToken

func ValidateToken(tokenString string) (uuid.UUID, error)

Types

type Claims

type Claims struct {
	UserID uuid.UUID
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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