kenzodrtenma / google-profile-catcher

A simple application to get user information from Google Social Login.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Profile Catcher

A simple Node.js application created to get information relevant to backend integrations using Google's social login system.

Prerequisites

I assume you have Node.js installed in your machine, if you don't, do it.

Recommendations

Is recommended to read the official Google Social Login documentation before or while using this repository. But chill, it's just a friend's tip ๐Ÿ˜„, you can completely ignore it.

How to use

Replace the "content" attribute to your Google's project Client ID.

<meta name="google-signin-client_id" content="YOUR-CLIENT-ID-GOES-HERE">

Run the application's server (the server.js file) with the command bellow, and access your local host in the listening port.

node server.js

You can optionally change this port if you already have something running on it, just change the "port" constant on the server.js file

const port = 4000; //Ex: 9999

Then all you have to do is click on the "Login" button and then catch your info. ๐Ÿ˜Ž.

Facing issues?

If you have issues related to the Google Social Login integration, i recommend again to read the docs on the "Recommendations" session.

Additionally, here's some valious tips

  • Remember to add your localhost URL to the "Authorized JavaScript Origins" in your Google project, then restart your application, it should take some minutes to your permission error disappear.
  • Feel free to open issues, or even pull requests to this repo. ๐Ÿ˜„

About

A simple application to get user information from Google Social Login.


Languages

Language:JavaScript 55.3%Language:HTML 29.6%Language:CSS 15.1%