n8n
Version:
n8n Workflow Automation Tool
15 lines (14 loc) • 603 B
TypeScript
import { TaskRunnersConfig } from '@n8n/config';
import { CacheService } from '../../../services/cache/cache.service';
export declare class TaskBrokerAuthService {
private readonly runnersConfig;
private readonly cacheService;
private readonly authToken;
private get grantTokenTtlInMs();
constructor(runnersConfig: TaskRunnersConfig, cacheService: CacheService);
isValidAuthToken(token: string): boolean;
createGrantToken(): Promise<string>;
tryConsumeGrantToken(grantToken: string): Promise<boolean>;
private generateGrantToken;
private cacheKeyForGrantToken;
}