Files
Agent-n8n/n8n-n8n-1.109.2/packages/nodes-base/credentials/NocoDb.credentials.ts

36 lines
669 B
TypeScript
Raw Normal View History

2025-09-08 04:48:28 +08:00
import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
export class NocoDb implements ICredentialType {
name = 'nocoDb';
displayName = 'NocoDB';
documentationUrl = 'nocoDb';
properties: INodeProperties[] = [
{
displayName: 'User Token',
name: 'apiToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
{
displayName: 'Host',
name: 'host',
type: 'string',
default: '',
placeholder: 'http(s)://localhost:8080',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
'xc-auth': '={{$credentials.apiToken}}',
},
},
};
}