n8n community node package (v0.4.6, stable) integrating with Auth Service, a self-hosted token authentication and authorization microservice. Provides two nodes: an Auth Service action node for full API access (validate tokens, manage zones and tokens) and an Auth Webhook trigger node that automatically validates tokens before workflow execution, replacing a multi-node setup. Key differentiators: zone-based permissions with read/write/delete/all levels; Docker deployment with Redis + SQLite/PostgreSQL; MFA-protected admin dashboard. Ships TypeScript types, depends on n8n-workflow.
npm install n8n-nodes-auth-serviceVerified import paths — ran on the pinned version, not inferred.
Shows how to use the Auth Service node programmatically to validate a token against a zone with read level.
Use exact package name 'n8n-nodes-auth-service' in npm install and imports.
Use dynamic import() or switch to ESM environment.
Ensure the Auth Service endpoint is reachable and /tokens/ping responds 200.
Test deletion in a non-production environment first.
Ensure clients send token in the expected header.
Change to import or use dynamic import: const mod = await import('n8n-nodes-auth-service');Ensure credentials are provided with correct format: { authServiceApi: { baseUrl, apiKey } }Pass token as 'Bearer <actual_token>' or match the configured token source.
Update n8n to latest version and ensure n8n-workflow is installed: npm install n8n-workflow@latest