Giter VIP home page Giter VIP logo

wwwebman / react-implicit-auth Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 922 KB

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

Home Page: https://react-implicit-auth.webman.pro/

License: MIT License

JavaScript 17.10% TypeScript 82.90%
react authorization authentication reactjs grant-flow implicit-flow react-context google-api facebook-api

react-implicit-auth's Introduction

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.

react-implicit-auth's People

Contributors

wwwebman avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.