UNPKG

whodis-sdk

Version:

A simple sdk for easy, secure authentication with the whodis platform. Setup secure authentication for your app in seconds.

22 lines (21 loc) 593 B
import { LogMethod } from 'simple-leveled-log-methods'; /** * securely reports an auth error to whodis * * for the purpose of: * - automatically detecting security attacks and mitigating * - aiding in debugging, with proactive and reactive support * * messages encrypted in flight and at rest destination */ export declare const reportAuthErrorForDiagnosis: ({ error, headers, config, log, }: { error: Error; headers: Record<string, string>; config: { issuer: string; audience: string; }; log: { warn: LogMethod; }; }) => Promise<void>;