func (a *Account) LoggedIn() bool {
	return a.LocalSession().IsLoggedIn()
}
LoggedIn returns true if the user is logged in.  It does not
try to load the session.
package libkb
import (
	"errors"
	"fmt"
	"time"
	keybase1 "github.com/keybase/client/go/protocol"
)
type timedGenericKey struct {
	Contextified
	key   GenericKey
	which string
	atime time.Time
}
func newTimedGenericKey(g *GlobalContext, k GenericKey, w string) *timedGenericKey {
	return &timedGenericKey{
		Contextified: NewContextified(g),
		key:          k,
		atime:        g.Clock().Now(),
		which:        w,
	}
}
func (t *timedGenericKey) getKey() GenericKey {
	t.atime = t.G().Clock().Now()
	return t.key
}
func (t *timedGenericKey) clean() {
	now := t.G().Clock().Now()
	if t.key != nil && (now.Sub(t.atime) > PaperKeyMemoryTimeout) {
		t.G().Log.Debug("Cleaned out key %q at %s", t.which, now)
		t.key = nil
	}
}
type Account struct {
	Contextified
	secretSyncer *SecretSyncer
	localSession *Session
	loginSession *LoginSession
	streamCache  *PassphraseStreamCache
	skbKeyring   *SKBKeyringFile
	secSigKey    GenericKey  
	secEncKey    GenericKey  
	lksec        *LKSec      
	paperSigKey *timedGenericKey  
	paperEncKey *timedGenericKey  
	secretPromptCanceledAt time.Time  
	testPostCleanHook func()  
}
func NewAccount(g *GlobalContext) *Account {
	return &Account{
		localSession: newSession(g),
		secretSyncer: NewSecretSyncer(g),
		Contextified: NewContextified(g),
	}
}
func (a *Account) LocalSession() *Session {
	return a.localSession
}
func (a *Account) GetUID() (ret keybase1.UID) {
	if a.localSession != nil {
		ret = a.localSession.GetUID()
	}
	return ret
}
func (a *Account) UnloadLocalSession() {
	a.localSession = newSession(a.G())
}