gpt4 book ai didi

javascript - 谷歌单点登录 : Sign Out Error (Website)

转载 作者:行者123 更新时间:2023-11-28 03:57:36 24 4
gpt4 key购买 nike

当您打开 logout.php 时,我们正在尝试自动从 Google 注销。有时它可以工作,但大多数时候我们都会收到错误 nb。有谁知道如何解决这个问题?

<script src="https://apis.google.com/js/platform.js"></script>
<script>
setTimeout(function() {
var auth2 = gapi.auth2.getAuthInstance();
auth2.signOut().then(function () {
window.location.href='NEWPAGE.php' ?>';
});
}, 500);
</script>

错误:

Uncaught Error: nb
at tE (https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en_GB.R4vvmD-bxFg.O/m=signin2/rt=j/sv=1/d=1/ed=1/am=AQ/rs=/cb=gapi.loaded_0:183:39)
at jF.<anonymous> (https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en_GB.R4vvmD-bxFg.O/m=signin2/rt=j/sv=1/d=1/ed=1/am=AQ/rs=/cb=gapi.loaded_0:224:235)
at new _.C (https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en_GB.R4vvmD-bxFg.O/m=signin2/rt=j/sv=1/d=1/ed=1/am=AQ/rs=/cb=gapi.loaded_0:112:296)
at jF.BT (https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en_GB.R4vvmD-bxFg.O/m=signin2/rt=j/sv=1/d=1/ed=1/am=AQ/rs=/cb=gapi.loaded_0:224:215)
at signOut (1:220:42)
at 1:216:17
at https://apis.google.com/js/platform.js:18:348
at Oa (https://apis.google.com/js/platform.js:10:467)
at b (https://apis.google.com/js/platform.js:18:331)
at Array.E.(anonymous function) (https://apis.google.com/js/platform.js:18:427)

最佳答案

Google+ 登录功能已完全弃用,并将于 2019 年 3 月 7 日关闭。这将是逐步关闭,最早将于 2019 年 1 月 28 日开始出现间歇性故障。 p>

您现在必须使用它:https://developers.google.com/identity/

关于javascript - 谷歌单点登录 : Sign Out Error (Website),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47436721/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com