From 882139ded1547391ad968353c042e92744176791 Mon Sep 17 00:00:00 2001 From: Daniel Chao Date: Wed, 5 Aug 2015 17:38:47 -0700 Subject: [PATCH] Add an authuser paramter http://stackoverflow.com/questions/13366254/is-it-possible-to-be-able-to-correctly-select-any-available-google-account-to-us --- gapi/gapi.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gapi/gapi.d.ts b/gapi/gapi.d.ts index 8c50826d4..cce0a2244 100644 --- a/gapi/gapi.d.ts +++ b/gapi/gapi.d.ts @@ -48,7 +48,11 @@ declare module gapi.auth { /** * The auth scope or scopes to authorize. Auth scopes for individual APIs can be found in their documentation. */ - scope?: any + scope?: any; + /** + * The user to sign in as. -1 to toggle a multi-account chooser, 0 to default to the user's current account, and 1 to automatically sign in if the user is signed into Google Plus. + */ + authuser?: number; }, callback: (token: GoogleApiOAuth2TokenObject) => any): void; /** * Initializes the authorization feature. Call this when the client loads to prevent popup blockers from blocking the auth window on gapi.auth.authorize calls.