【发布时间】:2020-04-10 21:16:53
【问题描述】:
当用户尝试在我的网站上使用 google 注册时,Google 会向用户显示上述 3 个弹出窗口,但当我尝试注册时,它不会向我显示相同的弹出窗口。 我看到的是就这个——
这 3 个独立的弹出窗口导致我的网站大量下降。如何删除这 3 个不同的权限弹出窗口?
Google 登录按钮详细信息 - 使用 React Google Login
<div className="manager-signup-container">
<div className="content">Join Peoplebox as a Manager to have productive 1:1s that drive actions.</div>
<GoogleLogin
className={`google-btn-${this.state.loginbtnStatus}`}
clientId={GOOGLE_CLIENT_ID}
buttonText="Sign up with Google"
onSuccess={(response) => this.responseOauth(response, "google")}
onFailure={this.responseGoogleFail}
responseType="code"
scope="profile email https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.readonly"
accessType="offline"
prompt="consent"
disabled={this.state.loginDisabled}
/>
【问题讨论】:
-
我正在通过检查将
code交换为auth_token时返回的范围来处理此问题。但如果有人能找到跳过这个流行音乐的方法,那就太好了。
标签: reactjs google-calendar-api google-signin google-apps google-login