login

package
v0.0.0-...-33029d4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPasswordHash = errors.New("No account found with the given credentials")

Functions

This section is empty.

Types

type LoginService

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

func NewLoginService

func NewLoginService(userRepo aggregates.IUserRepository, passMgr *auth.PasswordManager, jwt *auth.JWTService) *LoginService

func (*LoginService) LoginUserJWT

func (ls *LoginService) LoginUserJWT(c LoginUserWithJWTCommand) (string, error)

type LoginUserWithJWTCommand

type LoginUserWithJWTCommand struct {
	Username string
	Password string
}

type LoginUserWithJWTCommandHandler

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

func (*LoginUserWithJWTCommandHandler) Handle

Jump to

Keyboard shortcuts

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