auth

package
v0.0.0-...-a949d81 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(hashedPwd string, plainPwd string) bool

func Delete

func Delete(c echo.Context)

func GenerateAndSet

func GenerateAndSet(c echo.Context, user db.User) error

func HashAndSalt

func HashAndSalt(pwd string) (string, error)

func Parse

func Parse(c echo.Context, auth string) (interface{}, error)

Types

type UserAccessClaims

type UserAccessClaims struct {
	ID   string `json:"id"`
	Role string `json:"role"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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