-
Notifications
You must be signed in to change notification settings - Fork 22
[김다은] Sprint12 #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: express-김다은
Are you sure you want to change the base?
[김다은] Sprint12 #68
The head ref may contain hidden characters: "express-\uAE40\uB2E4\uC740-sprint12"
Conversation
| return token || undefined; | ||
| }, | ||
| }); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HS256은 HMAC + SHA256으로 암호학 전문적으로 공부하시게 되면 다룰 내용이에요.
| } | ||
|
|
||
| function removeUndefined<T extends Record<string, any>>(obj: T): Partial<T> { | ||
| return Object.fromEntries( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Record는 프론트에서 라우트 쿼리 매핑할때 많이 써요! Generic 잘 적용하셨습니다:)
| super(message, 404, data); // 404은 기본값 | ||
| this.name = "NotFoundError"; | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http 상태 코드 조금 더 세분화해주세요.
| Status | 이름 | 의미 | 예시 |
|---|---|---|---|
| 400 | Bad Request | 문법 오류, 누락된 파라미터 | JSON 파싱 오류 등 |
| 401 | Unauthorized | 인증되지 않은 사용자 | 로그인 실패, 토큰 없음 |
| 403 | Forbidden | 인증은 되었지만 권한 없음 | 관리자 전용 기능 접근 등 |
| 404 | Not Found | 요청 리소스 없음 | 잘못된 URL, ID 없음 |
| 405 | Method Not Allowed | 메서드 불허 | GET만 가능한 엔드포인트에 POST 요청 |
| 422 | Unprocessable Entity | 문법은 맞지만 처리 불가 | 빈 body, 유효성 검사 실패 등 |
| 500 | Internal Server Error | 서버 내부 오류 | DB 연결 실패 등 |
| // 로그인 - 비번 일치 에러 함수 | ||
| async function verifyPassword( | ||
| inputPassword: NonNullable<User["password"]>, | ||
| password: NonNullable<User["password"]> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
내장 타입 잘 쓰셨습니다!
|
conflict 해결해주세요 |
요구사항
기본
심화
AWS S3의 Presigned URL 기능을 활용하여 상품 이미지 업로드 기능을 구현합니다.
스크린샷
aws 콘솔 홈 결과물






DBeaver에서 상품 객체 데이터 예시 (RDS 연결)

멘토에게