| 
									
										
										
										
											2022-06-28 15:27:25 +02:00
										 |  |  | import { ICredentialType, INodeProperties } from 'n8n-workflow'; | 
					
						
							| 
									
										
										
										
											2019-10-03 08:53:03 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | export class ExampleCredentials implements ICredentialType { | 
					
						
							|  |  |  | 	name = 'exampleCredentials'; | 
					
						
							|  |  |  | 	displayName = 'Example Credentials'; | 
					
						
							| 
									
										
										
										
											2022-06-28 15:27:25 +02:00
										 |  |  | 	properties: INodeProperties[] = [ | 
					
						
							|  |  |  | 		// Credential data to request from the user, saved in encrypted format.
 | 
					
						
							|  |  |  | 		// Credential properties are defined exactly like node properties.
 | 
					
						
							| 
									
										
										
										
											2019-10-03 08:53:03 +02:00
										 |  |  | 		{ | 
					
						
							| 
									
										
										
										
											2022-06-28 15:27:25 +02:00
										 |  |  | 			displayName: 'Base URL', | 
					
						
							|  |  |  | 			name: 'url', | 
					
						
							|  |  |  | 			type: 'string', | 
					
						
							| 
									
										
										
										
											2019-10-03 08:53:03 +02:00
										 |  |  | 			default: '', | 
					
						
							| 
									
										
										
										
											2022-06-28 15:27:25 +02:00
										 |  |  | 			placeholder: 'https://example.com', | 
					
						
							| 
									
										
										
										
											2019-10-03 08:53:03 +02:00
										 |  |  | 		}, | 
					
						
							|  |  |  | 		{ | 
					
						
							|  |  |  | 			displayName: 'Access Token', | 
					
						
							|  |  |  | 			name: 'accessToken', | 
					
						
							| 
									
										
										
										
											2022-06-28 15:27:25 +02:00
										 |  |  | 			type: 'string', | 
					
						
							| 
									
										
										
										
											2019-10-03 08:53:03 +02:00
										 |  |  | 			default: '', | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 	]; | 
					
						
							|  |  |  | } |