Skip to content

Commit

Permalink
Merge pull request #13 from iot-lab-kiit/mvvm_kumar
Browse files Browse the repository at this point in the history
post login request changes in AuthRepositoryImpl.kt
  • Loading branch information
dead8309 authored Mar 27, 2024
2 parents 60ae41f + 45412a0 commit 30f78c6
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 0 deletions.
123 changes: 123 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -74,7 +75,9 @@ class AuthRepositoryImpl @Inject constructor(
private suspend fun postLoginRequest(postLoginData: PostLoginData): Result<Boolean> {
try {
val response = authApi.postLoginRequest(postLoginData)
Log.e("repo", response.toString())
if (!response.isSuccessful) {
logout()
throw Exception("Failed to post login data")
}

Expand Down

0 comments on commit 30f78c6

Please sign in to comment.