n8n-nodes-magic-dev
Version:
🪄 Magic Dev - Revolutionary community n8n node: AI Generation, Creator Hub, Quest Unlock, Market, P2P Magic Inbox (send & receive)!
30 lines (28 loc) • 1.02 kB
text/typescript
import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class MagicDevAuth implements ICredentialType {
name = 'magicDevAuth';
displayName = '🪄 Magic Dev Auth';
documentationUrl = 'https://docs.magic-dev.com/authentication';
properties: INodeProperties[] = [
{
displayName: 'Authentication Mode',
name: 'authMode',
type: 'options',
options: [
{ name: 'API Key', value: 'apiKey' },
{ name: 'Webhook', value: 'webhook' }
],
default: 'apiKey',
description: 'Choose your preferred authentication method'
},
{
displayName: 'Magic Dev API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
displayOptions: { show: { authMode: ['apiKey'] } },
default: '',
description: 'Your Magic Dev API key (optional for basic features)'
}
];
}