我使用react-google-login作为我的react应用程序。这是我的密码
<GoogleLogin
clientId="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
buttonText="Google"
render={renderProps => (
<button onClick={renderProps.onClick} className='google-login-button'>
<img src={GoogleButton}/>
</button>
)}
onSuccess={this.googleResponse}
onFailure={() => console.log('error')}
/>我想要的是,只有Gsuit用户才能登录/向上。就像有Gmail的人不应该被访问一样。
发布于 2020-05-05 08:27:31
您可以尝试使用hostedDomain道具的GoogleLogin,如果还没有尝试。我找到了这个相关的限制对google登录的访问。或者您可以跟随这个线程bhai.诉讼限制。
https://stackoverflow.com/questions/60828110
复制相似问题