-
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
토큰 데이터 스토어 계층 분리 #180
토큰 데이터 스토어 계층 분리 #180
Conversation
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.
고생했어용
authRepository.loginWithGoogle(googleToken).map { authRepository.saveAccessToken(it) } | ||
authRepository.loginWithGoogle(googleToken).map { | ||
userTokenRepository.saveAccessToken(it) | ||
} |
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.
Unit -> Unit 이라 map 대신 onEach도 괜찮을 것 같아
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.
String -> Unit 이에용 !!
val accessToken = userTokenRepository.getAccessToken() | ||
return if (accessToken.isNotEmpty()) { | ||
authRepository.verifyToken(accessToken) | ||
} else { | ||
false | ||
} |
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.
if (accessToken.isBlank()) return false
return authRepository.verifyToken(accessToken)
early return을 고려해볼 수 있을 듯!
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.
반영완료~
Issue
Overview