We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
solution: https://stackoverflow.com/questions/69107258/react-native-google-signin-google-signin-additon-of-scopes-results-in-infinte-lo
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: