File tree 1 file changed +7
-4
lines changed
packages/app-store/_utils/oauth
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ export class OAuthManager {
421
421
) {
422
422
throw new Error ( "Credential syncing is enabled but the required env variables are not set" ) ;
423
423
}
424
- myLog . debug (
424
+ myLog . info (
425
425
"Refreshing OAuth token from credential sync endpoint" ,
426
426
safeStringify ( {
427
427
appSlug : this . appSlug ,
@@ -449,7 +449,7 @@ export class OAuthManager {
449
449
) ;
450
450
}
451
451
} else {
452
- myLog . debug (
452
+ myLog . info (
453
453
"Refreshing OAuth token" ,
454
454
safeStringify ( {
455
455
appSlug : this . appSlug ,
@@ -467,7 +467,7 @@ export class OAuthManager {
467
467
}
468
468
469
469
const clonedResponse = response . clone ( ) ;
470
- myLog . debug (
470
+ myLog . info (
471
471
"Response from refreshOAuthToken" ,
472
472
safeStringify ( {
473
473
text : await clonedResponse . text ( ) ,
@@ -487,7 +487,10 @@ export class OAuthManager {
487
487
}
488
488
const parsedToken = OAuth2UniversalSchemaWithCalcomBackwardCompatibility . safeParse ( json ) ;
489
489
if ( ! parsedToken . success ) {
490
- myLog . error ( "Token parsing error:" , safeStringify ( parsedToken . error . issues ) ) ;
490
+ myLog . error (
491
+ "Token parsing error:" ,
492
+ safeStringify ( { issues : parsedToken . error . issues , oauth2response : json , tokenStatus } )
493
+ ) ;
491
494
throw new Error ( "Invalid token response" ) ;
492
495
}
493
496
return parsedToken . data ;
You can’t perform that action at this time.
0 commit comments