From d926bbe9f0b70e571cf988e1975053f2f8c8c865 Mon Sep 17 00:00:00 2001 From: mariajplmiranda Date: Mon, 22 May 2017 18:05:07 +0100 Subject: [PATCH 1/2] Adds `prompt` to grantOfflineAccess method --- types/gapi.auth2/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts index de75d26ca2..a053b385cc 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -48,6 +48,7 @@ declare namespace gapi.auth2 { */ grantOfflineAccess(options: { scope?: string; + prompt?: string; redirect_uri?: string; }): any; From 7f3bf5d32e7b8f8ba2b11cb500283eaf6247deaf Mon Sep 17 00:00:00 2001 From: mariajplmiranda Date: Tue, 23 May 2017 10:06:04 +0100 Subject: [PATCH 2/2] Changes grantOfflineAccess options Specifies prompt options, adds app_package_name property and removes redirect URI --- types/gapi.auth2/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts index a053b385cc..830abe3b0c 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -48,8 +48,8 @@ declare namespace gapi.auth2 { */ grantOfflineAccess(options: { scope?: string; - prompt?: string; - redirect_uri?: string; + prompt?: "select_account" | "consent"; + app_package_name?: string; }): any; /**