Files
Agent-n8n/n8n-n8n-1.109.2/packages/nodes-base/credentials/AsanaApi.credentials.ts
2025-09-08 04:48:28 +08:00

29 lines
565 B
TypeScript
Executable File

import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
export class AsanaApi implements ICredentialType {
name = 'asanaApi';
displayName = 'Asana API';
documentationUrl = 'asana';
properties: INodeProperties[] = [
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials.accessToken}}',
},
},
};
}