Skip to content

Conversation

@soobin-jeon
Copy link

No description provided.

Copy link
Member

@PFCJeong PFCJeong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다~

): User {
TODO()
//TODO()
val authorization = webRequest.getHeader("Authorization") as String
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getHeader가 null을 리턴할 수 있어서 위험한 타입 캐스팅입니다.

override fun authenticate(accessToken: String): User {
TODO("Not yet implemented")
//TODO("Not yet implemented")
val userList = userRepository.findAll().filter { User(it.username, it.password).getAccessToken() == accessToken }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

userRepository.findByUsername(accessToken.reversed())를 의도하였는데요.

요거는 accessToken이 억지로 들어간 면이 있긴 합니다.

TODO()
//TODO()
var i = 400
if (e is SignUpUsernameConflictException) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when 사용이 조금 더 코틀린스러울 것 같네요!

@PFCJeong PFCJeong force-pushed the master branch 2 times, most recently from 1a8e813 to f420cff Compare October 3, 2023 16:42
@PFCJeong PFCJeong force-pushed the master branch 3 times, most recently from 633df04 to 66e14db Compare October 22, 2023 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants