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:
Iván Ovejero
2022-09-09 10:35:50 +02:00
committed by GitHub
parent d4f858db92
commit d0c9120031
3 changed files with 4 additions and 3 deletions

View File

@@ -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: {

View File

@@ -25,7 +25,7 @@ export class UrlScanIoApi implements ICredentialType {
'API-KEY': '={{$credentials.apiKey}}',
},
},
} as IAuthenticateGeneric;
};
test: ICredentialTestRequest = {
request: {