Skip to content

Commit

Permalink
Await
Browse files Browse the repository at this point in the history
  • Loading branch information
anderspitman committed Oct 5, 2024
1 parent 2762acd commit 2db2186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async function completeAuthCodeFlow({ flowState, code }) {
});

if (!res.ok) {
throw new Error(res.text());
throw new Error(await res.text());
}

return res.json();
Expand Down

0 comments on commit 2db2186

Please sign in to comment.