0
 <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 项目安装了react-google-login用于 Google 注册。

情况1

用户首次尝试使用 Google 注册并允许访问 DOB。一切正常。

案例 2 用户首次尝试注册 Google 并拒绝访问 DOB。在他第二次尝试登录时,Google 升级出现并再次请求 DOB 许可。

理想情况下应该发生的情况是,如果用户在某个时候拒绝 DOB 的权限,那么之后任何时候都不应该再次询问。

我如何使用 React 实现这一目标?

4

0 回答 0