JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 99
  • Score
    100M100P100Q88151F
  • License ISC

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

Package Exports

  • react-gapi-auth2

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-gapi-auth2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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