Comments (1)
Hello! Thanks for your question and sorry for the delayed answer. It's indicated under the Props section of the documentation: scope
Basically you have to give this scope
prop the string containing relevant scope(s), separated by spaces. Example for Spotify (derived from the doc's example):
<OAuth2Login
scope="user-top-read user-follow-read"
authorizationUrl="https://accounts.spotify.com/authorize"
responseType="token"
clientId="9822046hvr4lnhi7g07grihpefahy5jb"
redirectUri="http://localhost:3000/oauth-callback"
onSuccess={onSuccess}
onFailure={onFailure} />
Please let me know if this helped!
from react-simple-oauth2-login.
Related Issues (20)
- When I added to my project ,occured problem? HOT 1
- Prop for selecting redirect strategy HOT 1
- When using code response, DOMException is silenced HOT 1
- Redirect URI is not encoded HOT 3
- Tests don't work anymore 😱 HOT 2
- End-to-end testing HOT 2
- How to handle browsers that don't support popup read / postMessage HOT 1
- Credit original contributors HOT 4
- Support Auth Code + PKCE flow
- Adding additional query params breaks the client id HOT 2
- Cannot resolve dependency './settings-code' at '...\example\client\src\settings-code' HOT 5
- Improve docs & examples HOT 2
- Setup semantic release for auto versioning, packaging / publishing, & changelog HOT 1
- Not working with React 17.0.2 HOT 4
- Headless functionality in hook
- Using with typescript! HOT 4
- Not working with react 18+ HOT 10
- "The popup was closed for an unexpected reason" popup is still open HOT 1
- onSucess when crossorigin HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-simple-oauth2-login.