mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-31 07:12:25 -05:00 
			
		
		
		
	Fix credentials naming to match class name
This commit is contained in:
		
					parent
					
						
							
								0623f030e6
							
						
					
				
			
			
				commit
				
					
						f528f995a2
					
				
			
		
					 2 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1,39 +0,0 @@ | |||
| import { | ||||
| 	IAuthenticateHeaderAuth, | ||||
| 	ICredentialTestRequest, | ||||
| 	ICredentialType, | ||||
| 	INodeProperties, | ||||
| } from "n8n-workflow"; | ||||
| 
 | ||||
| export class HttpBinApi implements ICredentialType { | ||||
| 	name = "httpbinApi"; | ||||
| 	displayName = "HttpBin API"; | ||||
| 	documentationUrl = "httpbin"; | ||||
| 	properties: INodeProperties[] = [ | ||||
| 		{ | ||||
| 			displayName: "API Key", | ||||
| 			name: "apiKey", | ||||
| 			type: "string", | ||||
| 			default: "", | ||||
| 		}, | ||||
| 		{ | ||||
| 			displayName: "Domain", | ||||
| 			name: "domain", | ||||
| 			type: "string", | ||||
| 			default: "https://httpbin.org", | ||||
| 		}, | ||||
| 	]; | ||||
| 	authenticate = { | ||||
| 		type: "headerAuth", | ||||
| 		properties: { | ||||
| 			name: "api-key", | ||||
| 			value: "={{$credentials.apiKey}}", | ||||
| 		}, | ||||
| 	} as IAuthenticateHeaderAuth; | ||||
| 	test: ICredentialTestRequest = { | ||||
| 		request: { | ||||
| 			baseURL: "={{$credentials?.domain}}/v3", | ||||
| 			url: "/account", | ||||
| 		}, | ||||
| 	}; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue