We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a47c0e3 commit 59cb641Copy full SHA for 59cb641
src/auth.ts
@@ -72,6 +72,10 @@ async function exchangeCodeForIdAndAuthToken(code: string): Promise<IdTokenRespo
72
}
73
});
74
75
+ if (response.status !== 200) {
76
+ console.error("Error during token exchange:", response.data);
77
+ }
78
+
79
return response.data;
80
81
@@ -178,7 +182,7 @@ async function startOauth(): Promise<ElawayTokenResponse | null> {
178
182
179
183
const code = await getAuthorizationCode(page);
180
184
if (code) {
181
- console.error("Found authorization code:");
185
+ console.info("Found authorization code.");
186
await browser.close();
187
188
accessIdResponse = await exchangeCodeForIdAndAuthToken(code);
0 commit comments