mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(nodes-base): Apply lint rule cred-class-field-authenticate-type-assertion (#4057)
👕 Apply `cred-class-field-authenticate-type-assertion`
This commit is contained in:
@@ -25,14 +25,14 @@ export class KoBoToolboxApi implements ICredentialType {
|
||||
hint: 'You can get your API token at https://[api-root]/token/?format=json (for a logged in user)',
|
||||
},
|
||||
];
|
||||
authenticate = {
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
headers: {
|
||||
Authorization: '=Token {{$credentials.token}}',
|
||||
},
|
||||
},
|
||||
} as IAuthenticateGeneric;
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
|
||||
@@ -25,7 +25,7 @@ export class UrlScanIoApi implements ICredentialType {
|
||||
'API-KEY': '={{$credentials.apiKey}}',
|
||||
},
|
||||
},
|
||||
} as IAuthenticateGeneric;
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
|
||||
Reference in New Issue
Block a user