code: func (s *AuthenticationService) Authenticated() bool {
  	if s != nil {
  		if s.authType == authTypeSession {
  			return s.client.session != nil
  		} else if s.authType == authTypeBasic {
  			return s.username != ""
  		}
  
  	}
  	return false
  }
docs: // Authenticated reports if the current Client has authentication details for JIRA