mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
Add includeAuthorizationData parameter to gapi.auth2 GoogleUser.getAuthResponse
This commit is contained in:
@@ -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);
|
||||
|
||||
2
gapi.auth2/index.d.ts
vendored
2
gapi.auth2/index.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user