app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

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

func New

func New(
	logger *slog.Logger,
	bootstrapping *bootstrapping.Initializer,
	accountManager *authentication.Manager,
	registrationManager *registration.Manager,
) *Account

func (*Account) CreateUser

func (r *Account) CreateUser(ctx context.Context, organizationID uuid.UUID, displayName, email, password string) (*domain.User, error)

func (*Account) Init

func (r *Account) Init(ctx context.Context) error

func (*Account) LoginUser

func (r *Account) LoginUser(ctx context.Context, email, password string) (*LoginResult, error)

LoginUser logs in a user with the given email and password.

type LoginResult

type LoginResult struct {
	User         *domain.User
	Token        string
	RefreshToken string
}

LoginResult is the result of a login operation.

Jump to

Keyboard shortcuts

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