docs: public HttpUrl authorizeUrl(String scopes, HttpUrl redirectUrl, ByteString state, String team) {
      HttpUrl.Builder builder = baseUrl.newBuilder("/oauth/authorize")
          .addQueryParameter("client_id", clientId)
          .addQueryParameter("scope", scopes)
          .addQueryParameter("redirect_uri", redirectUrl.toString())
          .addQueryParameter("state", state.base64());
  
      if (team != null) {
        builder.addQueryParameter("team", team);
      }
  
      return builder.build();
    }