How do I pass login_hint to gapi.auth.authorize?

I seem to recall there was a parameter to gapi.auth.authorize to specify a login_hint to bypass the account picker. But Google as I might, I can’t find it. Was it just a dream?

My problem is that I’m having issues where the account picker is popping under the current window, so is being missed by the user.

  • Google Contact API Error: Request via script load timed out. Possible causes: feed URL is incorrect; feed requires authentication
  • Using base64-encoded images with HtmlService in Apps Script
  • How to build 'real time visitors on site', Google API?
  • How to increase annotation font size and bold the annotation value in line chart of google api chart?
  • Access Denied Error when using gapi.auth.authorize
  • Google Search Console API: How do you implement multiple OR filters?
  • Or another way of asking the question might be, how are arguments like login_hint and incremental auth exposed by the Javascript library?

  • How to load dynamic data into google pie chart?
  • Execute a forEach like a waterfall in async
  • Google API in Javascript
  • Google Autocomplete HTMLInputElement error
  • Getting JSON with list of national holidays Google Calendar
  • Login my website use google api [onsignincallback not found error]
  • One Solution collect form web for “How do I pass login_hint to gapi.auth.authorize?”

    Google’s OAuth 2.0 documentation, under the heading Forming the URL, states that a login_hint parameter is accepted (for example,

    The JavaScript Client Library documentation, under gapi.auth.authorize, states:

    If the key is not one of the expected OAuth 2.0 parameters (see below), it is added to the URI as a query parameter.

    So you should be able to do this:

        // Parameters here...
        'login_hint': '',
        // ...Parameters here
    }, callbackFunc);

    The library will include the login_hint parameter in the request URL.