utils

package
v0.0.0-...-d26cda0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearTokenCookie

func ClearTokenCookie(c *fiber.Ctx)

func ComparePassword

func ComparePassword(hashedPassword string, password string) bool

func GeneratePassword

func GeneratePassword(password string) string

func GenerateRandomToken

func GenerateRandomToken() string

func GenerateToken

func GenerateToken(userId string) (string, error)

func SendEmail

func SendEmail(to, subject, body string) error

func SetTokenCookie

func SetTokenCookie(c *fiber.Ctx, token string)

func VerifyToken

func VerifyToken(tokenString string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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