utils

package
v0.0.0-...-1d69984 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHash

func GetHash(password string) (string, error)

func IsHashOf

func IsHashOf(hash, password string) error

func RandomString

func RandomString(n int) string

func TokenCreate

func TokenCreate(ttl time.Duration, email string) (string, error)

func TokenValidate

func TokenValidate(token string) (jwt.MapClaims, error)

func Validate

func Validate[T any](payload T) (errors []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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