We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42009c9 commit ab3bb3eCopy full SHA for ab3bb3e
1 file changed
index.mjs
@@ -81,7 +81,9 @@ export async function CopilotAuthPlugin({ client }) {
81
},
82
});
83
84
- if (!response.ok) return;
+ if (!response.ok) {
85
+ throw new Error(`Token refresh failed: ${response.status}`);
86
+ }
87
88
const tokenData = await response.json();
89
0 commit comments