github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/actor/sharedaction/is_logged_in.go (about)

     1  package sharedaction
     2  
     3  // IsLoggedIn checks whether a user has authenticated with CF
     4  func (actor Actor) IsLoggedIn() bool {
     5  	return actor.Config.AccessToken() != "" || actor.Config.RefreshToken() != ""
     6  }