feat: update X OAuth

This commit is contained in:
tim
2025-07-16 19:54:50 +08:00
parent eaa53deee7
commit 03e43bf9a0

View File

@@ -53,9 +53,7 @@ public class TwitterAuthService {
body.add("code_verifier", codeVerifier);
body.add("redirect_uri", redirectUri); // 一律必填
// 如果你的 app 属于机密客户端,必须带 client_secret
if (clientSecret != null && !clientSecret.isBlank()) {
body.add("client_secret", clientSecret);
}
body.add("client_secret", clientSecret);
ResponseEntity<JsonNode> tokenRes;
try {