mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
fix: Don't break oauth credentials when updating them and allow fixing broken oauth credentials by repeating the authorization flow (#12563)
This commit is contained in:
@@ -198,7 +198,7 @@ export class CredentialsController {
|
||||
throw new BadRequestError('Managed credentials cannot be updated');
|
||||
}
|
||||
|
||||
const decryptedData = this.credentialsService.decrypt(credential);
|
||||
const decryptedData = this.credentialsService.decrypt(credential, true);
|
||||
const preparedCredentialData = await this.credentialsService.prepareUpdateData(
|
||||
req.body,
|
||||
decryptedData,
|
||||
|
||||
Reference in New Issue
Block a user