diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..7643783 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,123 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/src/main/java/in/iot/lab/teacherreview/feature_authentication/data/repository/AuthRepositoryImpl.kt b/app/src/main/java/in/iot/lab/teacherreview/feature_authentication/data/repository/AuthRepositoryImpl.kt index becf6aa..c38e43f 100644 --- a/app/src/main/java/in/iot/lab/teacherreview/feature_authentication/data/repository/AuthRepositoryImpl.kt +++ b/app/src/main/java/in/iot/lab/teacherreview/feature_authentication/data/repository/AuthRepositoryImpl.kt @@ -1,5 +1,6 @@ package `in`.iot.lab.teacherreview.feature_authentication.data.repository +import android.util.Log import com.google.android.gms.auth.api.signin.GoogleSignInClient import com.google.firebase.FirebaseException import com.google.firebase.auth.FirebaseAuth @@ -74,7 +75,9 @@ class AuthRepositoryImpl @Inject constructor( private suspend fun postLoginRequest(postLoginData: PostLoginData): Result { try { val response = authApi.postLoginRequest(postLoginData) + Log.e("repo", response.toString()) if (!response.isSuccessful) { + logout() throw Exception("Failed to post login data") }