test(voice): match API-key realtime auth response

This commit is contained in:
devv-shayan committed 2026-10-04 23:03:09 +05:00
1 parent 8f5710e7cb
commit 467c4e928d
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -469,7 +469,7 @@ export async function initKeySetup({
throw new Error(
payload.error || 'Could not check ChatGPT sign-in.',
);
if (response.ok && payload.available) {
if (payload.available) {
writeStoredCloudVoiceAuthMode('oauth');
render(status);
say(
@@ -490,7 +490,7 @@ export async function initKeySetup({
});
const loginPayload = await loginResponse.json().catch(() => ({}));
if (lifetime.signal.aborted) return;
if (!loginResponse.ok && loginResponse.status !== 202) {
if (!loginResponse.ok) {
say(
loginPayload.error ||
payload.error ||