Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Commit

Permalink
Handle case where use is logged out
Browse files Browse the repository at this point in the history
  • Loading branch information
anantn committed Feb 8, 2013
1 parent b96d71f commit bae9dfc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions www/js/firefeed.js
Expand Up @@ -143,14 +143,14 @@ Firefeed.prototype.login = function(silent, onComplete) {
if (err) {
onComplete(new Error(err), false);
return;
} else if (info) {
// We got ourselves a token! Persist the info in localStorage for later.
localStorage.setItem("userid", info.id);
localStorage.setItem("authToken", info.firebaseAuthToken);
localStorage.setItem("name", info.first_name);
localStorage.setItem("fullName", info.name);
finish();
}
console.log(info);
// We got ourselves a token! Persist the info in localStorage for later.
localStorage.setItem("userid", info.id);
localStorage.setItem("authToken", info.firebaseAuthToken);
localStorage.setItem("name", info.first_name);
localStorage.setItem("fullName", info.name);
finish();
});

// TODO: Refactor this code to use the session goodness provided by Firebase.
Expand Down

0 comments on commit bae9dfc

Please sign in to comment.