Skip to content

Commit

Permalink
[REFACTOR] token type 수정 (#105)
Browse files Browse the repository at this point in the history
* [HOTFIX] 홈 화면 편의점별 상품이 없는 경우, UI가 찌그러져 보이는 현상 수정

* [REFACTOR] accessToken -> idToken 수정

---------

Co-authored-by: aurora32s <[email protected]>
  • Loading branch information
jiwon2724 and aurora32s authored Aug 1, 2023
1 parent 769a815 commit 63c7745
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>() {
val kakaoLoginCallback: (OAuthToken?, Throwable?) -> Unit = { token, error ->
when {
error != null -> showToast(getString(R.string.login_failed))
token != null -> loginViewModel.login(token.accessToken, "KAKAO")
token != null -> token.idToken?.let { idToken -> loginViewModel.login(idToken, "KAKAO") }
}
}
return UserApiClient.instance.loginWithKakaoAccount(this, callback = kakaoLoginCallback)
Expand Down

0 comments on commit 63c7745

Please sign in to comment.