mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-22 06:50:53 +08:00
feat: update X OAuth
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user