
Description
react-simple-oauth2-login is a React component that adds OAuth2 login to an app. It displays as a simple button, and clicking it opens the authorization screen of your chosen provider in a popup, so the app keeps its state while the user signs in. The component supports the Authorization Code and Implicit Grant flows. Four props are required: authorizationUrl, responseType, clientId and redirectUri. The client ID comes from the OAuth2 provider when you register an OAuth2 app and fill in the redirect URI. The README includes a basic example and a list of props, along with a changelog. The repository also contains example apps in an example directory, and those need OAuth2 apps configured on the provider you use. The README has a section on cross-origin and same-origin policy. The component is adapted from React GitHub Login by Checkr, which the README credits.…
Highlights
- OAuth2 login button for React
- Authorization Code and Implicit Grant flows
- Opens the provider in a popup
- Four required props
- Example apps in the repository
Ratings & Reviews
No ratings yet
Be the first to rate react-simple-oauth2-login.
People also visit

auth0-react
Adding Auth0 login, logout, protected routes, or user sessions to a React SPA
react-simple-oauth2-login FAQ
What does react-simple-oauth2-login do?
It is a React button that starts OAuth2 login with a provider, opening the authorization screen in a popup.
Which OAuth2 flows are supported?
The README says it supports the Authorization Code and Implicit Grant flows.
Which props are required?
authorizationUrl, responseType, clientId and redirectUri are mandatory. The client ID comes from your OAuth2 provider.
Why does it use a popup?
The README says the popup avoids losing your app's state while the user signs in.
Where did it come from?
It is based on React GitHub Login by Checkr, which the README credits.
What are the best react-simple-oauth2-login alternatives?
Popular alternatives to react-simple-oauth2-login include @react-oauth/google, react-facebook-login and react-facebook-auth. See all react-simple-oauth2-login alternatives

















