mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-04-21 03:17:28 +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("code_verifier", codeVerifier);
|
||||||
body.add("redirect_uri", redirectUri); // 一律必填
|
body.add("redirect_uri", redirectUri); // 一律必填
|
||||||
// 如果你的 app 属于机密客户端,必须带 client_secret
|
// 如果你的 app 属于机密客户端,必须带 client_secret
|
||||||
if (clientSecret != null && !clientSecret.isBlank()) {
|
body.add("client_secret", clientSecret);
|
||||||
body.add("client_secret", clientSecret);
|
|
||||||
}
|
|
||||||
|
|
||||||
ResponseEntity<JsonNode> tokenRes;
|
ResponseEntity<JsonNode> tokenRes;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user