Skip to content

Commit

Permalink
Issue #208 feat: 유저정보에 리프레쉬 토큰 저장
Browse files Browse the repository at this point in the history
  • Loading branch information
Max committed Dec 15, 2022
1 parent 5957d97 commit da4c044
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ data class User(
val email: String,
val displayName: String,
val photoUrl: String,
val idToken: String
val idToken: String,
val refreshToken: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class LoginViewModel @Inject constructor(
private suspend fun saveUser(loginResponse: LoginResponse) {
with(loginResponse) {
userRepository.saveUser(
User(localId, "", "", "", email, displayName, photoUrl, idToken)
User(localId, "", "", "", email, displayName, photoUrl, idToken, refreshToken)
)
}
}
Expand Down

0 comments on commit da4c044

Please sign in to comment.