Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPasswordHash = errors.New("No account found with the given credentials")
View Source
var ProvideLoginSet wire.ProviderSet = wire.NewSet( ProvideLoginUserWithJWTCommandHandler, )
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 LoginUserWithJWTCommandHandler ¶
type LoginUserWithJWTCommandHandler struct {
// contains filtered or unexported fields
}
func ProvideLoginUserWithJWTCommandHandler ¶
func ProvideLoginUserWithJWTCommandHandler(ur aggregates.IUserRepository, ls *LoginService) *LoginUserWithJWTCommandHandler
func (*LoginUserWithJWTCommandHandler) Handle ¶
func (h *LoginUserWithJWTCommandHandler) Handle(c LoginUserWithJWTCommand) (string, error)
Click to show internal directories.
Click to hide internal directories.