我正在使用Google Sign-In JavaScript 客户端并且还引用了示例应用程序
示例应用程序 (app.js) 告诉我 login_hint 是 signIn 方法的有效选项:
// If the user is not signed in with expected account, let sign in.
return auth2.signIn({
// Set `login_hint` to specify an intended user account,
// otherwise user selection dialog will popup.
login_hint: id || ''
});
但是参考手册并没有说它在那里做任何事情,但只对 authorize() 方法有效。在 Web 的其他地方,我看到它也与 init() 方法一起使用的示例。
有人可以澄清 login_hint 选项在功能上处于活动状态的任何/所有地方吗?