diff --git a/gradle.properties b/gradle.properties index 742fc25..3eecc3f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=0.4.5 +version=0.4.6 diff --git a/src/main/java/com/google/firebase/auth/FirebaseAuth.kt b/src/main/java/com/google/firebase/auth/FirebaseAuth.kt index d08e893..3a41a23 100644 --- a/src/main/java/com/google/firebase/auth/FirebaseAuth.kt +++ b/src/main/java/com/google/firebase/auth/FirebaseAuth.kt @@ -321,7 +321,7 @@ class FirebaseAuth constructor(val app: FirebaseApp) : InternalAuthProvider { .takeUnless { it.task.isComplete } ?: enqueueRefreshTokenCall(user) refreshSource.task.addOnSuccessListener { source.setResult(map(it)) } - refreshSource.task.addOnFailureListener { source.setException(it) } + refreshSource.task.addOnFailureListener { source.setException(FirebaseException(it.toString(), it)) } } private fun enqueueRefreshTokenCall(user: FirebaseUserImpl): TaskCompletionSource {