auth_repository

package
v0.0.0-...-950d083 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidUsernamePassword = auth_domain.NewHttpError(http.StatusUnprocessableEntity, "invalid email and/or password")
)

Functions

This section is empty.

Types

type AuthRepository

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

func New

func New(mc *containers.Main) *AuthRepository

func (AuthRepository) Login

func (r AuthRepository) Login(email, password string) (*auth_domain.User, error)

type RegisterDTO

type RegisterDTO struct {
	Email     string
	Password  string
	FirstName string
	LastName  string
}

Jump to

Keyboard shortcuts

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