| 
									
										
										
										
											2022-06-27 11:45:32 +02:00
										 |  |  | import { ICredentialType, NodePropertyTypes } from 'n8n-workflow'; | 
					
						
							| 
									
										
										
										
											2019-10-03 08:53:03 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | export class ExampleCredentials implements ICredentialType { | 
					
						
							|  |  |  | 	name = 'exampleCredentials'; | 
					
						
							|  |  |  | 	displayName = 'Example Credentials'; | 
					
						
							|  |  |  | 	properties = [ | 
					
						
							|  |  |  | 		// The credentials to get from user and save encrypted.
 | 
					
						
							|  |  |  | 		// Properties can be defined exactly in the same way
 | 
					
						
							|  |  |  | 		// as node properties.
 | 
					
						
							|  |  |  | 		{ | 
					
						
							|  |  |  | 			displayName: 'User', | 
					
						
							|  |  |  | 			name: 'user', | 
					
						
							|  |  |  | 			type: 'string' as NodePropertyTypes, | 
					
						
							|  |  |  | 			default: '', | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		{ | 
					
						
							|  |  |  | 			displayName: 'Access Token', | 
					
						
							|  |  |  | 			name: 'accessToken', | 
					
						
							|  |  |  | 			type: 'string' as NodePropertyTypes, | 
					
						
							|  |  |  | 			default: '', | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 	]; | 
					
						
							|  |  |  | } |