mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-29 14:22:26 -05:00
28 lines
588 B
TypeScript
28 lines
588 B
TypeScript
|
|
import {
|
||
|
|
ICredentialType,
|
||
|
|
NodePropertyTypes,
|
||
|
|
} from 'n8n-workflow';
|
||
|
|
|
||
|
|
|
||
|
|
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: '',
|
||
|
|
},
|
||
|
|
];
|
||
|
|
}
|