Skip to content

Sample repo showing how to use Google Login (gapi client) with React

Notifications You must be signed in to change notification settings

jamzi/react-gapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integrating Google Sign In with React application

Sample repo showing how to use Google's GAPI client with React

  • Before you can integrate Google Sign-In into your website, you must create a client ID, which you need to call the sign-in API.(https://developers.google.com/identity/sign-in/web/sign-in)
  • Create new project, wait... and open project
  • Go to: Apis and services -> Credentials
  • Create credentials -> OAuth client ID -> Configure consent screen (add required field) -> Select Web Application type
  • Add http://localhost:3000 to Authorised Javascript origins
  • Copy clientId to the app
  • clear browser cache (in DevTools)

To run:

  • npm install
  • npm run start

About

Sample repo showing how to use Google Login (gapi client) with React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published