Guest User

Untitled

a guest
Jan 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. function onSuccess(googleUser) {
  2. console.log('Logged in as: ' + googleUser.getBasicProfile().getName());
  3. send("/register", "post", [googleUser.getBasicProfile().getName()]);
  4. }
  5. function onFailure(error) {
  6. console.log(error);
  7. }
  8. function renderButton() {
  9. gapi.signin2.render('my-signin2', {
  10. 'scope': 'profile email',
  11. 'width': 250,
  12. 'height': 50,
  13. 'longtitle': true,
  14. 'theme': 'light',
  15. 'cookiepolicy':'single_host_origin',
  16. 'onsuccess': onSuccess,
  17. 'onfailure': onFailure
  18. });
  19. }
Add Comment
Please, Sign In to add comment