diff --git a/punch_list/eventManage.js b/punch_list/eventManage.js index c4aa646..b2497f0 100644 --- a/punch_list/eventManage.js +++ b/punch_list/eventManage.js @@ -410,5 +410,14 @@ function onSignIn(googleUser) { 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. + getJson(); } +function signOut() { + var auth2 = gapi.auth2.getAuthInstance(); + auth2.signOut().then(function () { + console.log('User signed out.'); + }); +} + + diff --git a/punch_list/index.html b/punch_list/index.html index dd61ba1..ead4f8a 100644 --- a/punch_list/index.html +++ b/punch_list/index.html @@ -26,9 +26,11 @@ - +
+
Sign out
+