Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function onSignIn(googleUser) {
- var profile = googleUser.getBasicProfile();
- console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
- console.log('Name: ' + profile.getName());
- console.log('Image URL: ' + profile.getImageUrl());
- console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
- }
- </script>
- Tentei
- var id = console.log('Email: ' + profile.getEmail());
- document.getElementById("id_usuario").value = id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement