n8n
Version:
n8n Workflow Automation Tool
16 lines (15 loc) • 504 B
TypeScript
import { CacheService } from '../../../services/cache/cache.service';
export type AuthorizeIntent = {
credentialId: string;
resolverId: string;
identity: string;
userId?: string;
metadata?: Record<string, unknown>;
};
export declare class AuthorizeIntentService {
private readonly cacheService;
constructor(cacheService: CacheService);
create(intent: AuthorizeIntent): Promise<string>;
get(token: string): Promise<AuthorizeIntent | undefined>;
private cacheKey;
}