fix: harden qwen oauth flow (#1120) (thanks @mukhtharcm)
This commit is contained in:
1 parent
215c395fc2
commit
fc45148155
3 files changed
+9
-4
No files matched your search
@@ -100,11 +100,11 @@ async function pollDeviceToken(params: {
|
||||
return { status: "error", message: text || response.statusText };
|
||||
}
|
||||
|
||||
if (response.status === 400 && payload?.error === "authorization_pending") {
|
||||
if (payload?.error === "authorization_pending") {
|
||||
return { status: "pending" };
|
||||
}
|
||||
|
||||
if (response.status === 429 && payload?.error === "slow_down") {
|
||||
if (payload?.error === "slow_down") {
|
||||
return { status: "pending", slowDown: true };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user