func (c *Client) Auth(ctx context.Context, a Authenticator) error {
	if c.auth != nil {
		return errors.New("auth already set; log out first")
	}
	if err := a.Authenticate(ctx, c); err != nil {
		return err
	}
	c.auth = a
	return nil
}
// Auth authenticates using the provided Authenticator.
Auth authenticates using the provided Authenticator.
// Auth authenticates using the provided Authenticator .
func (c *Client) Auth(ctx context.Context, a Authenticator) error {
	if c.auth != nil {
		return errors.New("auth already set; log out first")
	}
	if err := a.Authenticate(ctx, c); err != nil {
		return err
	}
	c.auth = a
	return nil
}
func ( c * Client ) Auth ( ctx context . Context , a Authenticator ) error { if c . auth != nil { return errors . New ( " " ) } if err := a . Authenticate ( ctx , c ) ; err != nil { return err } c . auth = a return nil }
Auth authenticates using the provided Authenticator.
Auth authenticates using the provided Authenticator .