测试 Google 一键式 - 已关闭,现在收到 "suppressed-by-user" 消息
Testing Google One Tap - closed and now getting "suppressed-by-user" message
我正在为此 api 添加 Google One Tap api to a React application. I am correctly getting the one tap login modal showing up. However, I clicked to close the modal, and now am getting the following response, which I see is based on the cool down period:
{
"g": "display",
"h": false,
"j": "suppressed_by_user"
}
由于我正在测试应用程序,有没有办法覆盖这个冷却期?
看起来像 :
componentDidMount() {
const handleCredentialResponse = response => {
console.log(response);
};
const client_id = "424242424-example26example44examplexyz.apps.googleusercontent.com";
const callback = handleCredentialResponse;
const auto_select = true;
google.accounts.id.initialize({ client_id, callback, auto_select });
google.accounts.id.prompt(notification => {
console.log(notification);
});
}
我想我已经解决了这个问题。我必须遵循以下指南才能完全清除 localhost:3000
的缓存:https://superuser.com/questions/278948/clear-cache-for-specific-domain-name-in-chrome
F12 > Chrome Developer Tools
> Application
选项卡 > Clear storage
在左树 > Select 所有数据项 > 单击 Clear site data
在开发过程中避免 'cool down' 的另一种方法是使用隐身浏览器模式。
您可以重新启动隐身浏览器以清除所有缓存内容。
我正在为此 api 添加 Google One Tap api to a React application. I am correctly getting the one tap login modal showing up. However, I clicked to close the modal, and now am getting the following response, which I see is based on the cool down period:
{
"g": "display",
"h": false,
"j": "suppressed_by_user"
}
由于我正在测试应用程序,有没有办法覆盖这个冷却期?
看起来像
componentDidMount() {
const handleCredentialResponse = response => {
console.log(response);
};
const client_id = "424242424-example26example44examplexyz.apps.googleusercontent.com";
const callback = handleCredentialResponse;
const auto_select = true;
google.accounts.id.initialize({ client_id, callback, auto_select });
google.accounts.id.prompt(notification => {
console.log(notification);
});
}
我想我已经解决了这个问题。我必须遵循以下指南才能完全清除 localhost:3000
的缓存:https://superuser.com/questions/278948/clear-cache-for-specific-domain-name-in-chrome
F12 > Chrome Developer Tools
> Application
选项卡 > Clear storage
在左树 > Select 所有数据项 > 单击 Clear site data
在开发过程中避免 'cool down' 的另一种方法是使用隐身浏览器模式。
您可以重新启动隐身浏览器以清除所有缓存内容。