github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+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  }