From 051c88fde13709801fbe05cf96140cee538d1ad7 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 21 Apr 2021 16:30:05 -0700 Subject: [PATCH] Add a todo WRT correctly setting the X-Goog-AuthUser header See https://github.com/flutter/flutter/issues/80905 --- packages/google_sign_in/google_sign_in/lib/google_sign_in.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart b/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart index 6584156cc070..b45b09c2d7a7 100644 --- a/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart +++ b/packages/google_sign_in/google_sign_in/lib/google_sign_in.dart @@ -108,6 +108,8 @@ class GoogleSignInAccount implements GoogleIdentity { final String? token = (await authentication).accessToken; return { "Authorization": "Bearer $token", + // TODO(kevmoo): Use the correct value once it's available from authentication + // See https://github.com/flutter/flutter/issues/80905 "X-Goog-AuthUser": "0", }; }