utils

package
v0.0.0-...-248df38 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashAndPassword

func CompareHashAndPassword(hashPassword string, password string) bool

func GenerateHashPassword

func GenerateHashPassword(password string) (string, error)

func GenerateJwt

func GenerateJwt(id string) (string, error)

Types

type JwtCustomClaims

type JwtCustomClaims struct {
	ID string
	jwt.RegisteredClaims
}

func ParseJwt

func ParseJwt(jwtStr string) (*JwtCustomClaims, error)

Jump to

Keyboard shortcuts

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