UNPKG

n8n

Version:

n8n Workflow Automation Tool

14 lines (13 loc) 579 B
import { GlobalConfig } from '@n8n/config'; import { CacheService } from '../../services/cache/cache.service'; export declare class TaskRunnerAuthService { private readonly globalConfig; private readonly cacheService; private readonly grantTokenTtl; constructor(globalConfig: GlobalConfig, cacheService: CacheService, grantTokenTtl?: number); isValidAuthToken(token: string): boolean; createGrantToken(): Promise<string>; tryConsumeGrantToken(grantToken: string): Promise<boolean>; private generateGrantToken; private cacheKeyForGrantToken; }