We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b0f1a1 commit 496a906Copy full SHA for 496a906
Shrine/app/src/main/java/com/authentication/shrine/repository/AuthRepository.kt
@@ -680,6 +680,8 @@ class AuthRepository @Inject constructor(
680
apiResult.getSessionId()?.let { newSessionId ->
681
dataStore.edit { prefs ->
682
prefs[SESSION_ID] = newSessionId
683
+ prefs[USERNAME] = apiResult.body()?.username ?: ""
684
+ prefs[DISPLAYNAME] = apiResult.body()?.displayName.orEmpty()
685
}
686
return true
687
0 commit comments