function isLoggedIn() {
  let account = JSON.parse(fs.readFileSync(root + "/account.json"));
  if (account["username"] && account["password"]) {
    return true;
  }
}
// Check if user is logged in
Check if user is logged in
Check if user is logged in
function isLoggedIn() {
  let account = JSON.parse(fs.readFileSync(root + "/account.json"));
  if (account["username"] && account["password"]) {
    return true;
  }
}
function isLoggedIn ( ) { let account = JSON . parse ( fs . readFileSync ( root + "/account.json" ) ) ; if ( account [ "username" ] && account [ "password" ] ) { return true ; } }
Check if user is logged in
Check if user is logged in