react-native-oauth icon indicating copy to clipboard operation
react-native-oauth copied to clipboard

Erroor: Invalid_scope

Open idoor88 opened this issue 6 years ago • 0 comments

Hi, is this project still alive? I tried this library, but I got Invalid_scope error, I tried all the suggestions from this link:https://github.com/fullstackreact/react-native-oauth/issues/61, but still the same issue, this is the code:

`

   const manager = new OAuthManager('test')

    manager.configure({

      google: {

        callback_url: `com.test:/oauth2redirect`,

        //callback_url: 'http://localhost/google',

        client_id: 'my_actual_clientId',

        client_secret: 'my_actual_client_secret',

        //rawScopes: 'true',

      }

    });

    console.log("authOauth ... manager: ", manager);

    let authResult = await manager.authorize('google', {scopes: 'profile,email'});

    console.log("authOauth authResult: ", authResult);

`

Also my final goal is to use this library to access my youtube account after logging in, will this work for youtube account? Thanks

idoor88 avatar Oct 28 '19 15:10 idoor88