mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)
This commit is contained in:
committed by
GitHub
parent
8c635993bd
commit
bafac73eb5
@@ -1,4 +1,5 @@
|
||||
import type { Readable } from 'stream';
|
||||
import jwt from 'jsonwebtoken';
|
||||
import set from 'lodash/set';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -18,8 +19,8 @@ import {
|
||||
CHAT_TRIGGER_NODE_TYPE,
|
||||
WAIT_NODE_TYPE,
|
||||
} from 'n8n-workflow';
|
||||
import set from 'lodash/set';
|
||||
import jwt from 'jsonwebtoken';
|
||||
import type { Readable } from 'stream';
|
||||
|
||||
import { formatPrivateKey, generatePairedItemData } from '../../utils/utilities';
|
||||
|
||||
export class RespondToWebhook implements INodeType {
|
||||
@@ -355,14 +356,12 @@ export class RespondToWebhook implements INodeType {
|
||||
}
|
||||
} else if (respondWith === 'jwt') {
|
||||
try {
|
||||
const { keyType, secret, algorithm, privateKey } = (await this.getCredentials(
|
||||
'jwtAuth',
|
||||
)) as {
|
||||
const { keyType, secret, algorithm, privateKey } = await this.getCredentials<{
|
||||
keyType: 'passphrase' | 'pemKey';
|
||||
privateKey: string;
|
||||
secret: string;
|
||||
algorithm: jwt.Algorithm;
|
||||
};
|
||||
}>('jwtAuth');
|
||||
|
||||
let secretOrPrivateKey;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user