-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Msw account api #5
Conversation
Quality Gate failedFailed conditions |
const parsedHeader = String(header.get('Authorization') || ' ').split(' '); | ||
try { | ||
const result = await jwtDecrypt<JwtPayloadType>(parsedHeader[1], secret) | ||
if (!result) throw new Error() |
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.
여긴 에러 메시지 필요없을까요?
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.
현재 설계상 parseAuth의 경우 이미 auth verification이 이루어진 다음 step에서 이루어지기 때문에 거의 무조건 반환되어야 하는 값입니다.
다만, 휴먼미싱이 우려되긴하네요... 추가하도록 하겠습니답.
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.
앗.. 따로 필요 없습니다. 왜냐면 현바로 그 아래에서 catch해서 오류메시지가 있는 ErrorException으로 대체하여 throw하기 때문입니다.
주요 작업목록