From 3de916cc201a19d245b42acd72293e05bd162a88 Mon Sep 17 00:00:00 2001 From: Andrew Haisting <142518658+ahaisting-livefront@users.noreply.github.com> Date: Thu, 21 Sep 2023 11:40:40 -0500 Subject: [PATCH] Update naming: mutableAccessTokenFlow -> mutableAuthStateFlow (#56) --- .../bitwarden/data/auth/repository/AuthRepositoryImpl.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryImpl.kt b/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryImpl.kt index dba73a0d3..60067846b 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryImpl.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryImpl.kt @@ -24,8 +24,8 @@ class AuthRepositoryImpl @Inject constructor( private val bitwardenSdkClient: Client, ) : AuthRepository { - private val mutableAccessTokenFlow = MutableStateFlow(AuthState.Unauthenticated) - override val authStateFlow: StateFlow = mutableAccessTokenFlow.asStateFlow() + private val mutableAuthStateFlow = MutableStateFlow(AuthState.Unauthenticated) + override val authStateFlow: StateFlow = mutableAuthStateFlow.asStateFlow() /** * Attempt to login with the given email. @@ -55,7 +55,7 @@ class AuthRepositoryImpl @Inject constructor( LoginResult.Error }, onSuccess = { - mutableAccessTokenFlow.value = AuthState.Authenticated(it.accessToken) + mutableAuthStateFlow.value = AuthState.Authenticated(it.accessToken) LoginResult.Success }, )