Scheduling infrastructure for absolutely everyone.
hotfix-conditional-valid-resource-owner-check (#14814)
Hariom Balharaa51024e9152f
diff --git a/packages/app-store/_utils/oauth/OAuthManager.ts b/packages/app-store/_utils/oauth/OAuthManager.tsindex ea653dac4af..e863a6b94a5 100644--- a/packages/app-store/_utils/oauth/OAuthManager.ts+++ b/packages/app-store/_utils/oauth/OAuthManager.ts@@ -174,7 +174,6 @@ export class OAuthManager {*/isTokenExpired?: IsTokenExpired;}) {- ensureValidResourceOwner(resourceOwner);this.resourceOwner = resourceOwner;this.currentTokenObject = currentTokenObject;this.appSlug = appSlug;@@ -191,6 +190,13 @@ export class OAuthManager {credentialSyncVariables.CREDENTIAL_SYNC_SECRET_HEADER_NAME &&credentialSyncVariables.CREDENTIAL_SYNC_SECRET);++ if (this.useCredentialSync) {+ // Though it should be validated without credential sync as well but it seems like we have some credentials without userId in production+ // So, we are not validating it for now+ ensureValidResourceOwner(resourceOwner);+ }+this.autoCheckTokenExpiryOnRequest = autoCheckTokenExpiryOnRequest;this.updateTokenObject = updateTokenObject;}