Google cloud platform Google Oauth错误:403访问被拒绝开发人员未授予权限

Google cloud platform Google Oauth错误:403访问被拒绝开发人员未授予权限,google-cloud-platform,youtube-api,google-oauth,google-login,google-developers-console,Google Cloud Platform,Youtube Api,Google Oauth,Google Login,Google Developers Console,我想访问youtube频道的评论、视频、播放列表等。。 在我的React应用程序中,我使用React google登录获取google令牌 const login = (props) => { const clientId = "<OAuthClientIDs>" const onSuccess = (response) => { props.onLogin(response.

我想访问youtube频道的评论、视频、播放列表等。。 在我的React应用程序中,我使用
React google登录
获取google令牌

const login = (props) => {
    
        const clientId = "<OAuthClientIDs>"
    
        const onSuccess = (response) => {
            props.onLogin(response.profileObj);
        }
    
        const onFailure = (response) => {
            console.log(response);
        }
    
        return(
            <div>
                <GoogleLogin
                    scope="https://www.googleapis.com/auth/youtube"
                    clientId={clientId}
                    buttonText="Login"
                    onSuccess={onSuccess}
                    onFailure={onFailure}
                    cookiePolicy={'single_host_origin'}
                    style={{marginTop:"100px"}}
                    isSignedIn={true}
                />
            </div>
        )
    }

export default login;
 
但是当用户想要登录时,我得到了错误403:access\u denied,我不明白为什么

在谷歌云中,我在API库中启用了Youtube数据API V3


这不是您的作用域的问题。问题是,您的应用程序当前处于测试阶段,因为您还没有被验证。当您的应用程序仍处于测试阶段时,在其发布并通过验证过程之前,您只能做些什么

你需要做的就是去。然后在左侧的项目中,查找同意屏幕。单击显示“添加用户”的按钮。您最多可以添加100个用户,他们将能够在应用程序处于测试阶段时使用您的应用程序

提示:请记住,在您的应用程序得到验证之前,为测试应用程序上传的视频将设置为私有

const onLogin = (googleId) => {
    setgoogleId(googleId);
  }

  const logPlayList = () => {
    let header = {
      headers: {
          'Content-Type': 'application/json;charset=UTF-8',
          "Authorization": "Bearer " + googleId.googleId,
      }
    };

    axios.get("https://www.googleapis.com/youtube/v3/playlists?part=snippet&mine=true&key=" + googleId", header)
      .then(response => { console.log(response.data) })
      .catch(error => console.log(error))
  }