n8n-nodes-magic-dev
Version:
🪄 Magic Dev - Revolutionary community n8n node: AI Generation, Creator Hub, Quest Unlock, Market, P2P Magic Inbox (send & receive)!
34 lines (33 loc) • 1.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MagicDevAuth = void 0;
class MagicDevAuth {
constructor() {
this.name = 'magicDevAuth';
this.displayName = '🪄 Magic Dev Auth';
this.documentationUrl = 'https://docs.magic-dev.com/authentication';
this.properties = [
{
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)'
}
];
}
}
exports.MagicDevAuth = MagicDevAuth;