pkg

package
v0.0.0-...-03da4f4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRefreshToken

func GenerateRefreshToken() (string, error)

func GenerateUUID

func GenerateUUID() string

func GetTokenFromRequest

func GetTokenFromRequest(r *http.Request) (string, error)

func LoadEnv

func LoadEnv() error

func ParseToken

func ParseToken(tokenString string, secret []byte) (string, error)

Types

type Hasher

type Hasher struct {
	// contains filtered or unexported fields
}

func NewHasher

func NewHasher(salt string) *Hasher

func (Hasher) Hash

func (h Hasher) Hash(password string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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