Advertisement
contatowellington

Untitled

Nov 15th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <script>
  2. function onSignIn(googleUser) {
  3. var profile = googleUser.getBasicProfile();
  4. console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
  5. console.log('Name: ' + profile.getName());
  6. console.log('Image URL: ' + profile.getImageUrl());
  7. console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
  8.  
  9. }
  10. </script>
  11.  
  12.  
  13. Tentei
  14. var id = console.log('Email: ' + profile.getEmail());
  15. document.getElementById("id_usuario").value = id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement