func (c *Client) Logout(ctx context.Context) error {
	if c.auth == nil {
		return errors.New("not authenticated")
	}
	err := c.auth.Logout(ctx, c)
	c.auth = nil
	return err
}
// Logout logs out after authentication.
Logout logs out after authentication.
// Logout logs out after authentication .
func (c *Client) Logout(ctx context.Context) error {
	if c.auth == nil {
		return errors.New("not authenticated")
	}
	err := c.auth.Logout(ctx, c)
	c.auth = nil
	return err
}
func ( c * Client ) Logout ( ctx context . Context ) error { if c . auth == nil { return errors . New ( " " ) } err := c . auth . Logout ( ctx , c ) c . auth = nil return err }
Logout logs out after authentication.
Logout logs out after authentication .