Add debug logs for oauth plugin

This commit is contained in:
Gregory Schier committed 2025-06-03 09:27:54 -07:00
1 parent 9e68e276a1
commit 6eb16afd96
5 files changed
+26 -7

No files matched your search

@@ -68,7 +68,7 @@ export async function getOrRefreshAccessToken(ctx: Context, contextId: string, {
if (resp.status === 401) {
// Bad refresh token, so we'll force it to fetch a fresh access token by deleting
// and returning null;
console.log('Unauthorized refresh_token request');
console.log('[oauth2] Unauthorized refresh_token request');
await deleteToken(ctx, contextId);
return null;
}