Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native-google-signin/google-signin additon of scopes results in infinte loading #988

Closed
souradeepmajumdar05 opened this issue Sep 8, 2021 · 1 comment

Comments

@souradeepmajumdar05
Copy link

I am trying to get token so that i can upload videos to youtube. for this i started using

import {
GoogleSignin,
GoogleSigninButton,
statusCodes,
} from '@react-native-google-signin/google-signin';

scopes are taken from https://developers.google.com/identity/protocols/oauth2/scopes

But if you try adding any scope like the code below it results in infinite loading, it does not even time out eg code:

GoogleSignin.configure({
scopes: [//'https://www.googleapis.com/auth/drive.readonly',
'https://www.googleapis.com/auth/youtube'
//'https://www.googleapis.com/auth/youtube.upload',
],
webClientId: 'webClientId',
});

what works is defaults scope and the code looks like this:

GoogleSignin.configure({webClientId: 'webClientId', });

and the response from the server is with two scopes

[
"https://www.googleapis.com/auth/userinfo.profile",
"https://www.googleapis.com/auth/userinfo.email"
]

Any help to get token scope with https://www.googleapis.com/auth/youtube would be greatly appreciated.

react-native: 0.64.2
npm : 7.19.1
eact-native-google-signin/google-signin: 7.0.0-alpha.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants