googleapis_auth
googleapis_auth copied to clipboard
When using userconsent browser flow and trying to use with the PeopleApi package kicks out two errors
Steps to reproduce:
return authBrowser
.createImplicitBrowserFlow(_identifier, _googleScopes)
.then((authBrowser.BrowserOAuth2Flow flow) {
flow
.clientViaUserConsent()
.then((auth.AuthClient client) async {
await new PeopleApi(client).people
.get('people/me', personFields: 'coverPhotos,emailAddresses')
.then( (Person person) {
print(person);
});
This looks like it actually does a network retrieve with the data in the response, but it kicks out two errors: Refused to set unsafe header "content-length", Refused to set unsafe header "user-agent";