Skip to content

React Provider handles authorization and authentication using the implicit grant flow of social providers (Google, Facebook).

License

Notifications You must be signed in to change notification settings

wwwebman/react-implicit-auth

Repository files navigation

react-implicit-auth

React Implicit Authorization

npm bundlephobia Contributions License examples

React Implicit Authorization is a React Provider component that simplifies the implicit grant flow authorization and authentication process using the following social API providers:

Technically it's a wrapper on top of the SDK interface delivered by social providers.

Read docs for more details.

docs build netlify

Install

$ npm install react-implicit-auth
$ yarn add react-implicit-auth

Motivation

The main idea is to unify the social provides API interface and solve the following problems:

  • A different methods naming, API usage, responses. The component tries to solve issue unifying stuff
  • A complex documentation. Using the component you save time for testing and reading docs
  • A lack of auto initialization. The component allows you to append SDK scripts and initialize them based on the configuration you provide

Docs

See the documentation for more information about using react-implicit-auth package.

Troubleshooting

After running yarn start browser complains that "your connection is not secure"?

Ignore it and add an exception for this page. The page should have https to make because most of the providers require it.

Google login doesn't work in incognito mode?

This is one of the limitations of the implicit grant flow. Google login might not work in incognito mode or when third-party cookies are blocked: issue.

Contributing

If you want to contribute to react-implicit-auth please see the contributing guideline.

About

React Provider handles authorization and authentication using the implicit grant flow of social providers (Google, Facebook).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published