func (c *Client) Auth(r *protocol.AuthRequest) (*protocol.AuthResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}

	if resp, ok := resp.(*protocol.AuthResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
// Auth retrieves the fid for authentication.
Auth retrieves the fid for authentication.
// Auth retrieves the fid for authentication .
func (c *Client) Auth(r *protocol.AuthRequest) (*protocol.AuthResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}
	if resp, ok := resp.(*protocol.AuthResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
func ( c * Client ) Auth ( r * protocol . AuthRequest ) ( * protocol . AuthResponse , error ) { resp , err := c . send ( r ) if err != nil { return nil , err } if resp , ok := resp . ( * protocol . AuthResponse ) ; ok { return resp , nil } return nil , ErrInvalidResponse }
Auth retrieves the fid for authentication.
Auth retrieves the fid for authentication .