github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+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  }