github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+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  }