我无法找到有关 Google One Tap UX 以及如何在登录重定向后保留登录状态的任何文档。我正在使用 html api,请在此处查看代码:
setTimeout(function () {
let target = document.getElementById('google-signin');
target.innerHTML = '';
var s = document.createElement("script");
s.src = 'https://accounts.google.com/gsi/client';
document.head.appendChild(s);
console.log('appended script', s);
}, 30000);
本质上,我将这个登录弹出窗口延迟了 30 秒,该部分工作正常,但不久之后就会发生这种情况:
我本以为 google sdk 会在某个地方设置 cookie 或其他东西,但我想它不会,或者我应该通过自己的方式处理持久登录状态。我只是想知道这里的正确方法。
我的问题是:Google 如何知道用户是否已使用 Google One Tap UX 登录?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号