Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions google-signin-aware.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
}
if (val && val != this._clientId) {
this._clientId = val;
this.initAuth2();
if ('gapi' in window) {
this.initAuth2();
}
}
},

Expand Down Expand Up @@ -423,10 +425,11 @@
},

/** pops up sign-in dialog */
signIn: function() {
signIn: function(id) {
this.assertAuthInitialized();
var params = {
'scope': this.getMissingScopes()
'scope': this.getMissingScopes(),
'login_hint': id || ''
};

// Proxy specific attributes through to the signIn options.
Expand Down Expand Up @@ -727,8 +730,8 @@
},

/** pops up the authorization dialog */
signIn: function() {
AuthEngine.signIn();
signIn: function(id) {
AuthEngine.signIn(id);
},

/** signs user out */
Expand Down