code: func (c *Client) Login(ctx context.Context, user *url.Userinfo) error {
  	req := internal.URL(c, internal.SessionPath).Request(http.MethodPost)
  
  	if user != nil {
  		if password, ok := user.Password(); ok {
  			req.SetBasicAuth(user.Username(), password)
  		}
  	}
  
  	return c.Do(ctx, req, nil)
  }
docs: // Login creates a new session via Basic Authentication with the given url.Userinfo.