scope not working
See original GitHub issueHi,
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:
- Created 6 years ago
- Reactions:6
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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.