Answers for "How To Add Google Social Login Button"

0

How To Add Google Social Login Button

$('#google-button').on('click', function() {
  // Initialize with your OAuth.io app public key
  OAuth.initialize('TMRAkcJl9nNercaeP5tFhqPMSLA');
  // Use popup for OAuth
  OAuth.popup('google').then(google => {
    console.log(google);
    // Retrieves user data from oauth provider
    console.log(google.me());
  });
})
Posted by: Guest on June-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language