libs

package
v0.0.0-...-ed2c4e1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 5 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 GenerateToken

func GenerateToken(userid int32) string

GenerateToken -> generates token

func HashPassword

func HashPassword(password string) (string, error)

func ValidateToken

func ValidateToken(token string) (*jwt.Token, error)

ValidateToken --> validate the given token

Types

This section is empty.

Jump to

Keyboard shortcuts

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