Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion firebase-vertexai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Unreleased
* [fixed] Fixed issue where error Firebase App Check tokens were missing from the requests unintentionally. (#6409)


# 16.0.1
Expand Down Expand Up @@ -55,4 +56,3 @@
* [feature] Added support for `responseMimeType` in `GenerationConfig`.
* [changed] Renamed `GoogleGenerativeAIException` to `FirebaseVertexAIException`.
* [changed] Updated the KDocs for various classes and functions.

Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ internal constructor(

if (token.error != null) {
Log.w(TAG, "Error obtaining AppCheck token", token.error)
} else {
headers["X-Firebase-AppCheck"] = token.token
}
// The appcheck backend can differentiate between apps without appcheck, and wrongly
// configured apps by verifying the value of the token, so it always needs to be
// included.
headers["X-Firebase-AppCheck"] = token.token
}

if (internalAuthProvider == null) {
Expand Down
Loading