auth

package
v0.0.0-...-4d30d97 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(hashed string, plain []byte) bool

func CreateJWT

func CreateJWT(user UserJWT, refreshToken bool) (string, error)

func HashPassword

func HashPassword(password string) (string, error)

func ValidateJWT

func ValidateJWT(tokenString string, refreshToken bool) (jwt.MapClaims, error)

Types

type UserJWT

type UserJWT struct {
	UserId   string
	Email    string
	UserName string
}

Jump to

Keyboard shortcuts

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