Advertisement
contatowellington

Untitled

Mar 5th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function onSignIn(googleUser) {
  2. var profile = googleUser.getBasicProfile();
  3. console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
  4. console.log('Name: ' + profile.getName());
  5. console.log('Image URL: ' + profile.getImageUrl());
  6. console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement