Merge pull request #14429 from mitchellwills/master

Add includeAuthorizationData parameter to gapi.auth2 GoogleUser.getAu…
This commit is contained in:
Arthur Ozga
2017-02-09 14:10:08 -08:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -19,6 +19,12 @@ function test_getAuthInstance(){
var auth = gapi.auth2.getAuthInstance();
}
function test_getAuthResponse(){
var user = gapi.auth2.getAuthInstance().currentUser.get();
var authResponse = user.getAuthResponse();
var authResponseWithAuth = user.getAuthResponse(true);
}
function test_render(){
var success = (googleUser: gapi.auth2.GoogleUser): void => {
console.log(googleUser);
+1 -1
View File
@@ -151,7 +151,7 @@ declare namespace gapi.auth2 {
/**
* Get the response object from the user's auth session.
*/
getAuthResponse(): AuthResponse;
getAuthResponse(includeAuthorizationData?: boolean): AuthResponse;
/**
* Returns true if the user granted the specified scopes.