mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 23:54:07 -08:00
29 lines
542 B
TypeScript
29 lines
542 B
TypeScript
import { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
export class LinearApi implements ICredentialType {
|
|
name = 'linearApi';
|
|
|
|
displayName = 'Linear API';
|
|
|
|
documentationUrl = 'linear';
|
|
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'API Key',
|
|
name: 'apiKey',
|
|
type: 'string',
|
|
typeOptions: { password: true },
|
|
default: '',
|
|
},
|
|
];
|
|
|
|
authenticate: IAuthenticateGeneric = {
|
|
type: 'generic',
|
|
properties: {
|
|
headers: {
|
|
Authorization: '={{$credentials.apiKey}}',
|
|
},
|
|
},
|
|
};
|
|
}
|