Skip to content

Commit

Permalink
fix unwrapped exception escaping from refreshToken
Browse files Browse the repository at this point in the history
  • Loading branch information
nbransby committed Sep 1, 2024
1 parent 642e6bd commit 190a23b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.4.5
version=0.4.6
2 changes: 1 addition & 1 deletion src/main/java/com/google/firebase/auth/FirebaseAuth.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<FirebaseUserImpl> {
Expand Down

0 comments on commit 190a23b

Please sign in to comment.