utils

package
v0.0.0-...-c489b42 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func CreateToken

func CreateToken(userId uuid.UUID) (string, error)

func HashPassword

func HashPassword(password string) (string, error)

func Valid

func Valid(ss string)

Types

type AuthClaims

type AuthClaims struct {
	jwt.RegisteredClaims
	UserID uuid.UUID `json:"userId"`
}

Jump to

Keyboard shortcuts

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