Add debug logs for oauth plugin

This commit is contained in:
Gregory Schier
2025-06-03 09:27:54 -07:00
parent 9e68e276a1
commit 6eb16afd96
5 changed files with 26 additions and 7 deletions

View File

@@ -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;
}