Skip to content

Commit 520513f

Browse files
committed
Fix vertexAI authorization header
The header for authenticated request from vertex was using an invalid authorization value
1 parent 3afa1c4 commit 520513f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/GenerativeModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ internal constructor(
110110
try {
111111
val token = internalAuthProvider.getAccessToken(false).await()
112112

113-
headers["Authorization"] = token.token!!
113+
headers["Authorization"] = "Firebase ${token.token!!}"
114114
} catch (e: Exception) {
115115
Log.w(TAG, "Error getting Auth token ", e)
116116
}

0 commit comments

Comments
 (0)