Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 393 Bytes

README.md

File metadata and controls

16 lines (15 loc) · 393 Bytes

google-signin-demo

Google login demo using gapi

Installation

var startApp = function () {
  gapi.load('auth2', function () {
    auth2 = gapi.auth2.init({
      // Change this to your Google ID
      client_id: 'YOUR_GOOGLE_ID.apps.googleusercontent.com',
      cookiepolicy: 'single_host_origin',
    });
	  attachSignin(document.getElementById('btnGoogle'));
	});
};