Please help to make the following synonym
google-login --> google-signin
Both tags refers to the same API and to the same documentation -> https://developers.google.com/identity/sign-in/web/sign-in
google-login (1,103 questions)
Excerpt
Google-login refers to a sign-in API provided by Google.
Wiki
Google provides an API to allow developers to integrate a secure and quick way in their apps to log their users in using a registration system they are already using and trust most. There is full guidance available here.
Top Links
google-signin (3,249 questions)
Excerpt
Google Sign-In allows users to sign in to your application with their Google accounts
Wiki
By adding Google Sign-In, you bring the power of Google to your site or application. When a user is signed in, you get an OAuth token for making API requests on their behalf, which you can use to better understand your user, connect them with their friends, and create a richer and more engaging experience.
You can also add the Google+ Sign-In button to your Android or iOS app.
Minimal implementations
Web
Include the required JS headers
<head> <script src="https://apis.google.com/js/client:platform.js?onload=startApp"
async defer>
Put a placeholder for containing the button
<body> <!-- ... --> <div id="gConnect"> <div id="signin-button"></div> </div> <!-- ... --> </body>
Render the button and handle user sign-in
function startApp() { gapi.load('auth2', function() { gapi.client.load('plus','v1').then(function() { gapi.signin2.render('signin-button', { scope: 'https://www.googleapis.com/auth/plus.login', fetch_basic_profile: false }); gapi.auth2.init({fetch_basic_profile: false, scope:'https://www.googleapis.com/auth/plus.login'}).then( function (){ console.log('init'); auth2 = gapi.auth2.getAuthInstance(); auth2.isSignedIn.listen( function() { console.log(auth2.currentUser.get()); }); auth2.then(function(resp){ console.log(auth2.currentUser.get()); }); }); }); }); }