Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix(auth): drop connectors scopes from Codex OAuth so the Responses token is minted

thinhlpg339a9797fbf4
diff --git a/src-tauri/src/core/cli/auth/account.rs b/src-tauri/src/core/cli/auth/account.rs
index 58e1b5b5f..d738f453c 100644
--- a/src-tauri/src/core/cli/auth/account.rs
+++ b/src-tauri/src/core/cli/auth/account.rs
@@ -57,7 +57,7 @@ pub fn begin(provider: AccountProvider) -> Result<AccountLogin, String> {
"https://auth.openai.com/oauth/authorize",
"https://auth.openai.com/oauth/token",
"http://localhost:1455/auth/callback",
- "openid profile email offline_access api.connectors.read api.connectors.invoke",
+ "openid profile email offline_access",
),
AccountProvider::Claude => (
"9d1c250a-e61b-44d9-88ed-5944d1962f5e",
@@ -1272,7 +1272,7 @@ mod tests {
.find(|(key, _)| key == "scope")
.unwrap()
.1,
- "openid profile email offline_access api.connectors.read api.connectors.invoke"
+ "openid profile email offline_access"
);
assert_eq!(
url.query_pairs()