summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scripts/user.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scripts/user.ts b/src/scripts/user.ts
index 7b157603..66e44b21 100644
--- a/src/scripts/user.ts
+++ b/src/scripts/user.ts
@@ -30,7 +30,7 @@ window["___gcfg"] = {
};
/**
- * Google signin button
+ * Google signin button.
*/
window["gapiSigninButton"] = () => {
gapi.signin2.render('google-signin', {
@@ -65,8 +65,10 @@ window["gapiSigninButton"] = () => {
};
+/**
+ * Removes session storage items.
+ */
export function removeUserInfo() {
- // Remove session storage items
localStorage.removeItem("googleToken");
localStorage.removeItem("googleTokenExpiration");
localStorage.removeItem("googleName");