Revert "Always verify sessions before login"
This reverts commit 87af312f54.
This commit is contained in:
@@ -41,6 +41,5 @@ sealed class AuthState {
|
||||
object SignedOut : AuthState()
|
||||
object Valid : AuthState()
|
||||
object Fetching: AuthState()
|
||||
object InValid: AuthState()
|
||||
data class Status(val status: String?) : AuthState()
|
||||
}
|
||||
@@ -90,11 +90,7 @@ class AccountActivity : BaseActivity() {
|
||||
updateStatus(getString(R.string.requesting_new_session))
|
||||
}
|
||||
AuthState.Valid -> {
|
||||
updateContents()
|
||||
}
|
||||
|
||||
AuthState.InValid -> {
|
||||
updateStatus(getString(R.string.failed_validating_account))
|
||||
}
|
||||
|
||||
AuthState.Available -> {
|
||||
@@ -108,7 +104,7 @@ class AccountActivity : BaseActivity() {
|
||||
}
|
||||
|
||||
AuthState.SignedIn -> {
|
||||
VM.observe()
|
||||
updateContents()
|
||||
}
|
||||
|
||||
AuthState.SignedOut -> {
|
||||
|
||||
@@ -102,11 +102,6 @@ class SplashActivity : BaseActivity() {
|
||||
moveToContent()
|
||||
}
|
||||
|
||||
AuthState.InValid -> {
|
||||
updateStatus(getString(R.string.failed_validating_account))
|
||||
updateActionLayout(true)
|
||||
}
|
||||
|
||||
AuthState.Available -> {
|
||||
updateStatus(getString(R.string.session_verifying))
|
||||
updateActionLayout(false)
|
||||
@@ -118,7 +113,7 @@ class SplashActivity : BaseActivity() {
|
||||
}
|
||||
|
||||
AuthState.SignedIn -> {
|
||||
VM.observe()
|
||||
moveToContent()
|
||||
}
|
||||
|
||||
AuthState.SignedOut -> {
|
||||
|
||||
@@ -215,7 +215,7 @@ class AuthViewModel(application: Application) : BaseAndroidViewModel(application
|
||||
buildGoogleAuthData(email, aasToken)
|
||||
}
|
||||
AccountType.ANONYMOUS -> {
|
||||
liveData.postValue(AuthState.InValid)
|
||||
buildAnonymousAuthData()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user