usecase

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package usecase 는 인증 컨텍스트의 애플리케이션 로직을 담는다.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Login

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

Login 은 ID/PW 로 사용자를 인증하고 세션 토큰을 발급한다.

OIDC 와 나란히 서는 두 번째 경로다. IdP 가 죽어도 들어갈 수단이 있어야 한다.

func NewLogin

func NewLogin(repo port.CredentialRepository, issuer port.SessionIssuer) *Login

func (*Login) Execute

func (uc *Login) Execute(ctx context.Context, email, password string) (LoginOutput, error)

type LoginOutput

type LoginOutput struct {
	Token string
	User  domain.Credential
}

LoginOutput 은 로그인 결과다.

Jump to

Keyboard shortcuts

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