diff --git a/app/src/main/java/foundation/e/apps/data/login/LoginSourceRepository.kt b/app/src/main/java/foundation/e/apps/data/login/LoginSourceRepository.kt index 7cf920cbb55d1502b3f3b4a81bd60495b09de083..fea7939b6a31e8cbf2353b172add38ed9bac312b 100644 --- a/app/src/main/java/foundation/e/apps/data/login/LoginSourceRepository.kt +++ b/app/src/main/java/foundation/e/apps/data/login/LoginSourceRepository.kt @@ -43,10 +43,13 @@ class LoginSourceRepository @Inject constructor( if (source::class.java.simpleName in clearAuthTypes) { source.clearSavedAuth() } - if (source is LoginSourceGPlay) { - gplayAuth = source.getAuthObject().result.data + + val authObject = source.getAuthObject() + authObjectsLocal.add(authObject) + + if (authObject is AuthObject.GPlayAuth) { + gplayAuth = authObject.result.data } - authObjectsLocal.add(source.getAuthObject()) } return authObjectsLocal