-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Cloud Functions
Which platforms are affected?
No response
Description
When calling a Callable function that has "Require authentication" enabled using the Firebase SDK in Flutter, I get the following error in the Cloud Console logs:
httpRequest: {10}
insertId: "-----------"
labels: {5}
logName: "projects/nanec/logs/run.googleapis.com%2Frequests"
receiveTimestamp: "2025-08-12T15:00:48.491917366Z"
resource: {2}
severity: "WARNING"
spanId: "56befffff8516aa7"
textPayload: "The request was not authenticated. Either allow unauthenticated invocations or set the proper Authorization header. Read more at: https://cloud.google.com/run/docs/securing/authenticating"
timestamp: "2025-08-12T15:00:48.125692Z"
trace: "projects/wajeby-45ddc/traces/d0802d8a3b4524e2babdbbaf4652a4eb"
traceSampled: true
The number of requests executed by the function remains zero, even though the user is logged in.
However, when I switch the function to "Public access," it works normally.
Function version: v2 Callable function
Flutter Firebase Functions package version: 5.6.2
Reproducing the issue
When calling a Callable function that has "Require authentication" enabled using the Firebase SDK in Flutter, I get the following error in the Cloud Console logs:
httpRequest: {10}
insertId: "-----------"
labels: {5}
logName: "projects/nanec/logs/run.googleapis.com%2Frequests"
receiveTimestamp: "2025-08-12T15:00:48.491917366Z"
resource: {2}
severity: "WARNING"
spanId: "56befffff8516aa7"
textPayload: "The request was not authenticated. Either allow unauthenticated invocations or set the proper Authorization header. Read more at: https://cloud.google.com/run/docs/securing/authenticating"
timestamp: "2025-08-12T15:00:48.125692Z"
trace: "projects/wajeby-45ddc/traces/d0802d8a3b4524e2babdbbaf4652a4eb"
traceSampled: true
The number of requests executed by the function remains zero, even though the user is logged in.
However, when I switch the function to "Public access," it works normally.
Function version: v2 Callable function
Flutter Firebase Functions package version: 5.6.2
Firebase Core version
3.15.1
Flutter Version
3.32
Relevant Log Output
Flutter dependencies
Expand Flutter dependencies
snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response