code: func TokenOrNone(token string) (AuthMode, error) {
  	if token == OmitAuthToken {
  		return None{}, nil
  	}
  	return NewTokenAuth(token)
  }
docs: // TokenOrNone returns a token auth mode if token is not OmitAuthToken, and
  // otherwise a None auth mode.