UNPKG

n8n

Version:

n8n Workflow Automation Tool

12 lines (11 loc) 547 B
import { type N8nOAuth2FlowResult } from 'n8n-workflow'; export interface N8nOAuth2Flow { begin(resourceUrl: string, metadata?: Record<string, string>): Promise<string>; complete(code: string, state: string): Promise<N8nOAuth2FlowResult>; } export declare class OAuth2FlowProxy implements N8nOAuth2Flow { private provider; registerProvider(provider: N8nOAuth2Flow): void; begin(resourceUrl: string, metadata?: Record<string, string>): Promise<string>; complete(code: string, state: string): Promise<N8nOAuth2FlowResult>; }