Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSuccess(googleUser) {
- console.log('Logged in as: ' + googleUser.getBasicProfile().getName());
- send("/register", "post", [googleUser.getBasicProfile().getName()]);
- }
- function onFailure(error) {
- console.log(error);
- }
- function renderButton() {
- gapi.signin2.render('my-signin2', {
- 'scope': 'profile email',
- 'width': 250,
- 'height': 50,
- 'longtitle': true,
- 'theme': 'light',
- 'cookiepolicy':'single_host_origin',
- 'onsuccess': onSuccess,
- 'onfailure': onFailure
- });
- }
Add Comment
Please, Sign In to add comment