Closed
Description
After updating from Firebase BoM v33.10.0 to v33.11.0, I started consistently receiving this exception:
com.google.firebase.functions.FirebaseFunctionsException: Unauthenticated
This occurs when invoking a callable function (createAuthUser
) via FirebaseFunctions.getHttpsCallable().call()
in my Android app. The code and behavior were working fine in BoM v33.10.0 (Functions SDK 21.1.1).
Environment:
- Firebase BoM:
33.11.0
- Protobuf Gradle Plugin:
0.9.4
- Protobuf Lite:
4.26.1
- Android SDK: Target 35
- Kotlin: 2.0.0
Code Sample:
override suspend fun signUp(uid: String, email: String, password: String): Result<Unit> {
val request = hashMapOf("uid" to uid, "email" to email, "password" to password)
return try {
FirebaseManager.getFunctions(context)
.getHttpsCallable("createAuthUser")
.call(request)
.await()
Result.success(Unit)
} catch (e: FirebaseFunctionsException) {
Result.failure(e)
}
}
createAuthUser
is public and can be accessed by anyone on the internet, which makes theUnauthenticated
exception especially strange.
What I've Tried:
- Reverted back to BoM 33.10.0 and the issue disappears.
- Confirmed there were no changes to backend Cloud Function or auth logic in the Android app.
Behavior:
Throws FirebaseFunctionsException: Unauthenticated
immediately after invoking the function.