utility

package
v0.0.0-...-407fa1f Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 7 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(username string) (string, error)

Generate a new JWT token

func HashPassword

func HashPassword(password string) (string, error)

func ParseAndValidateJWT

func ParseAndValidateJWT(r *http.Request) (*models.Claims, error)

Parse and validate JWT from request

Types

This section is empty.

Jump to

Keyboard shortcuts

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