Commit Graph

15 Commits

Author SHA1 Message Date
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Kismet31
8835a0051e AuthorizeConfig.include_granted_scope is S-less (#20289)
As per the documentation for authorize.AuthorizeConfig, include_granted_scopes parameter should include an s.
2017-10-04 08:52:35 -07:00
John Cao
617648bf88 remove whitespaces 2017-08-30 12:33:51 -07:00
John Cao
916c404aab Update grantOfflineAccess
Update grantOfflineAccess with OfflineAccessOptions
2017-08-30 12:11:29 -07:00
Andy
924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
Thomas Shafer
dd202ec5aa Extract ClientConfig type from init params. (#18791)
This allows API consumers to cleanly construct init params outside of the init call.
2017-08-10 16:35:12 -07:00
Thomas Shafer
9cbdf886a4 Add gapi.auth2.authorize typings. (#18707) 2017-08-08 11:39:59 -07:00
Franklin Yu
d2bf223394 [gapi.auth2] Fix parameter according to latest official documentation (#17816)
* [gapi.auth2] Fix parameter type of callback

According to the [documentation][]:

> The function called with the `GoogleAuth` object when it is fully
> initialized.

[documentation]: https://developers.google.com/identity/sign-in/web/reference#googleauththenoninit-onerror

* [gapi.auth2] Convert documentation to type

Types are better than description in documentation.

* [gapi.auth2] Add parameter to `gapi.auth2.init()`

See [official documentation][].

[official documentation]: https://developers.google.com/identity/sign-in/web/reference#gapiauth2initparams

* [gapi.auth2] Fix indentation

This change is best viewed with "histogram" or "patience" diffing
algorithm.

* [gapi.auth2] Add test and fix a bug

* [gapi.auth2] Add linting
2017-07-18 14:25:00 -07:00
Franklin Yu
dd09ab28f3 [gapi.auth2] mark a parameter as optional
According to the [documentation][], this parameter is optional.

[documentation]: https://developers.google.com/identity/sign-in/web/reference#googleauthgrantofflineaccessoptions
2017-07-04 18:14:14 -04:00
Tanguy Krotoff
78869f8819 Improve gapi HttpRequestPromise thanks to TypeScript 2.3 (#16194)
* Improve gapi HttpRequestPromise thanks to TypeScript 2.3

* Fix typings that use gapi
2017-06-05 16:45:53 -07:00
mariajplmiranda
7f3bf5d32e Changes grantOfflineAccess options
Specifies prompt options, adds app_package_name property and removes redirect URI
2017-05-23 10:06:04 +01:00
mariajplmiranda
d926bbe9f0 Adds prompt to grantOfflineAccess method 2017-05-22 18:05:07 +01:00
Mykhailo96
53ada7c0c2 reloadAuthResponse for gapi.auth2 (#16061) 2017-04-26 11:34:36 -07:00
Mitchell Wills
95317ca2cb Fix types of some fields in gapi.auth2.AuthResponse 2017-04-19 11:20:02 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00