 <p>You will want to call gapi.auth.init. See the docs here: <a href="https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauthinit" rel="nofollow">https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauthinit</a></p> <blockquote> <p>Initializes the authorization feature. Call this when the client loads to prevent popup blockers from blocking the auth window on gapi.auth.authorize calls.</p> </blockquote>