mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-28 22:12:26 -05:00
Fix credential usage and error output
This commit is contained in:
parent
26f52ed166
commit
de7c4dbed1
2 changed files with 3 additions and 6 deletions
|
|
@ -1,9 +1,7 @@
|
|||
import {
|
||||
IAuthenticateGeneric,
|
||||
ICredentialDataDecryptedObject,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
IHttpRequestOptions,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
|
|
@ -33,9 +31,8 @@ export class HttpBinApi implements ICredentialType {
|
|||
authenticate = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
header: {
|
||||
name: 'api-key',
|
||||
value: '={{$credentials.apiKey}}',
|
||||
headers: {
|
||||
Authorization: '={{"Bearer " + $credentials.token}}',
|
||||
},
|
||||
},
|
||||
} as IAuthenticateGeneric;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue