问题描述
<GoogleLogin
clientId="something.apps.googleusercontent.com"
icon={false}
// eslint-disable-next-line max-len
scope="https://www.googleapis.com/auth/user.birthday.read https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"
textButton="Googles"
cookiePolicy={"single_host_origin"}
onSuccess={responseGoogle}
onFailure={responseGoogle}
className={styles.googleButton}
>
我已经为我的 React 项目的 Google 注册安装了 react-google-login。
案例 1
用户首次尝试向 Google 注册并允许访问 dob。一切正常。
案例 2 用户首次尝试使用 Google 注册并拒绝访问 dob。在他第二次尝试登录时,Google 升级出现并再次请求 dob 许可。
理想情况下应该发生的情况是,如果用户在某个时候拒绝了 dob 的权限,那么在此之后它不应在任何时候再次询问。
我如何使用 React 实现这一目标?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)