admin 管理员组文章数量: 1086019
I'm using import react-oidc-context to auth with my aws cognito. I'm trying to use the .signinPopup function but whenever the pop up opens I'm getting an error "Popup closed by user" although the pop up is open in my browser and I can see it.
I thought my wrapper was the issue so i isolated it and even this simple code doesn't work, as soon as the cognito pop up loads it says that it was closed.
import { useAuth } from "react-oidc-context";
......
const auth = useAuth();
.....
<button
onClick={async () => {
try {
await auth.signinPopup();
} catch {
return;
}
}}
>
{" "}
hi
</button>
版权声明:本文标题:reactjs - react oidc context signinpopup always returns an error that the pop up was closed - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1744009947a2517965.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论