auth

package
v0.0.0-...-9f5c386 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptionPassword

func DecryptionPassword(hashed, password string) bool

func EncryptionPassword

func EncryptionPassword(password string) string

func GetToken

func GetToken(credential Credential) (string, error)

Types

type Claims

type Claims struct {
	Credential
	jwt.RegisteredClaims
}

func VerifyToken

func VerifyToken(token string) (Claims, error)

type Credential

type Credential struct {
	UserID int `json:"user_id"`
}

type UserAuth

type UserAuth struct{}

Jump to

Keyboard shortcuts

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