- ITokenStore, IEmailService 인터페이스 정의 - InMemoryTokenStore (IMemoryCache 기반), ConsoleEmailService (로그 출력) 구현 - SignupAsync에 6자리 인증 코드 생성/저장/발송 로직 추가 - VerifyEmailAsync 구현 (코드 검증 → EmailVerified 업데이트) - POST /v1/in/auth/email/verify 엔드포인트 추가 - DI 등록 (ITokenStore, IEmailService, MemoryCache)
8 lines
204 B
C#
8 lines
204 B
C#
namespace SPMS.Application.Interfaces;
|
|
|
|
public interface IEmailService
|
|
{
|
|
Task SendVerificationCodeAsync(string email, string code);
|
|
Task SendPasswordResetTokenAsync(string email, string token);
|
|
}
|