github.com/Thanhphan1147/cloudfoundry-cli@v7.1.0+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  }