[Feature/#26] 이메일 전송 및 인증 API 연동 및 유틸리티 훅 구현 #29
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚨 관련 이슈
#26
✨ 변경사항
✏️ 작업 내용
1. API 통신을 위한 기본 환경을 구축
axios설치 및 공통 인스턴스를 생성, React Query와 함께 사용할 커스텀 훅을 구현2. API 연동
(1) 인증번호 전송 (
sendEmail)POST /api/users/email-send(2) 인증번호 검증 (
verifyEmail)POST /api/users/email-verify(3) 데이터 타입 정의
3. 유틸리티 훅 구현
useTimer.ts): 인증번호 전송 후 타이머 기능 구현 (3분)formattedTime: 분:초(MM:SS) 형식의 문자열 반환 (메모이제이션 적용)구현 상세
Promise기반의 비동기 함수로 처리됨스크린샷 예시
😅 미완성 작업
N/A
📢 논의 사항 및 참고 사항
N/A