【发布时间】:2021-10-26 10:10:16
【问题描述】:
我正在使用 google 身份服务 (https://developers.google.com/identity/gsi/web/reference/js-reference) 登录我的网络游戏应用程序。 使用以下代码完成初始化。
google.accounts.id.initialize({ client_id: 'YOUR_GOOGLE_CLIENT_ID', 回调:handleCredentialResponse });
我想通过单击按钮来调用 google promt 弹出窗口,因为我无法在游戏中使用默认按钮。我们遵循相同的准则来创建一个新的。 我尝试使用
google.accounts.id.prompt();
,但它只在活动会话的情况下有效。请在这里帮助我 提前致谢。
【问题讨论】:
标签: single-sign-on google-signin