Skip to content

analyzeAuthFailureWithAI

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/cli/src/utils/ai-auth-debugger.ts

Ask AI to analyze authentication failure and suggest fixes

Signature

ts
async function analyzeAuthFailureWithAI(diagnostics: AuthDiagnostics, config: AuthConfig, debugGuideContent: string): Promise<{
  analysis: string;
  suggestedFixes: Array<{
    type: 'alert-handling' | 'selector-change' | 'timing-adjustment' | 'method-change';
    description: string;
    code?: string;
  }>;
}>

Parameters

NameType
diagnosticsAuthDiagnostics
configAuthConfig
debugGuideContentstring

Returns: Promise<{ analysis: string; suggestedFixes: Array<{ type: 'alert-handling' | 'selector-change' | 'timing-adjustment' | 'method-change'; description: string; code?: string; }>; }>

Was this page helpful?

Download as PDF