Options
All
  • Public
  • Public/Protected
  • All
Menu

react-gapi-auth2

React Gapi Auth2

React bindings for gapi.auth2 (Google's OAuth 2.0 JavaScript client)

The Problem

You want to use the gapi.auth2 api to implement "Sign in with Google" in your React app. However, you don't want to use the api directly because,

  • You don't want to load <script /> tags manually, as suggested in the documentation
  • You prefer to write declarative code and gapi.auth2 is an imperative api

This Solution

// TODO

Generated using TypeDoc