helper

package
v0.0.0-...-6fd4c63 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashedPassword

func CompareHashedPassword(password, userPassword string) error

Compare Password

func ErrorHandler

func ErrorHandler(c *gin.Context, statusCode int, message string)

Eror Handler function

func HashPassword

func HashPassword(password string) (string, error)

Hash Password

func SendToken

func SendToken(c *gin.Context, id string, message string)

Generate jwt token and send via cookie

Types

This section is empty.

Jump to

Keyboard shortcuts

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