我使用的是 反应-谷歌-登录 我的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的用户不能访问一样。