question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scope not working

See original GitHub issue

Hi,

I think the ‘scope’ doesn’t work, at least for me.

My code (the important bits):

import { GoogleLogin } from 'react-google-login';

                 <GoogleLogin
                        clientId="client_id"
                        buttonText="Login"
                        scope="https://www.googleapis.com/auth/youtube"
                        onSuccess={this.responseSuccess}
                        onFailure={this.responseFail
                  />

I also tried with ‘https://www.googleapis.com/auth/youtube.readonly’, ‘youtube’, ‘youtube.readonly’. Every time, the scopes returned by getGrantedScopes() are: https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/plus.me openid email profile

Can you please help me to figure out what am I doing wrong ?

Thanks 👍

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
someshkurreycommented, Apr 8, 2019

@anthonyjgrove Hey, I am also facing the same issue. I have two buttons in my app and it is taking only first button property. It is refreshing only If I reload the page. Please give some solution for this.

3reactions
max3uc3commented, Jan 8, 2019

Hi ! I’ve a similar issue, but it’s when I have more than one GoogleLogin component on the same page, but with different scope by GoogleLogin instantiation.

Apparently, the chosen scope is the first scope to be instanciate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When Scopes Go Bad — Warning Signs within ...
Unfortunately, scope problems can be erratic or hard to diagnose. You may find yourself with unexplained flyers or a slight degradation of accuracy...
Read more >
How To Troubleshoot Riflescope Problems | An NRA Shooting ...
If your riflescope is not tracking correctly, there is likely a defect with your turrets and the construction inside. To determine if your...
Read more >
How to Troubleshoot Your Riflescope Zeroing Problems
1. Bore Sighting Isn't Boring · 2. Rise of the Bullet · 3. What's Your Click Adjustment? · 4. Defective Scope Work-Around ·...
Read more >
How to Fix the Most Common Riflescope Problems
First you blame the rifle. Then the scope. Perhaps vice versa. But at what point do we consider that maybe a simple oversight...
Read more >
My rifle scope won't adjust far enough why is that and how do I ...
You chose the wrong scope. It sounds odd but not all scopes have the same adjustment distance. · Your rifle wasn't drilled correctly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found