|
|
@@ -198,6 +198,7 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
|
|
|
httpRequest.cookie(getCookie());
|
|
|
httpRequest.setProxy(proxy);
|
|
|
HttpResponse execute = httpRequest.execute();
|
|
|
+ parseSetCookie(execute.headerList(setCookie));
|
|
|
log.info("three:{}",execute.body());
|
|
|
if (execute.getStatus() == 302) {
|
|
|
String Location = execute.header("Location");
|
|
|
@@ -222,7 +223,7 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
|
|
|
while (sb.length() < 6) {
|
|
|
sb.insert(0, 0);
|
|
|
}
|
|
|
- four(codeVerifier, location, code, username);
|
|
|
+ four(codeVerifier, Location, code, username);
|
|
|
}
|
|
|
if (Location.contains("com.openai.chat://auth0.openai.com/ios/com.openai.chat/callback?")) {
|
|
|
return getAccessToken(codeVerifier, Location, username);
|
|
|
@@ -336,4 +337,5 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|