Skip to Content

importAuthentication()

importAuthentication(input): Promise< | { signIn: { expiresAt: string | null; id: string; pending: boolean; principalId: string | null; realm: string; relayCount: number; source: "local" | "managed"; }; status: "imported"; } | { signIns: object[]; status: "duplicate"; }>;

Imports native authentication, or returns existing entries so the caller can choose.

Parameters

input

accountMetadata?

Record<string, unknown> = ...

Native account metadata when credentials do not carry account identity.

authJson

Record<string, unknown> = ...

choice?

| { action: "add"; } | { action: "update"; signInId: string; } = ...

format

"codex:auth-json" | "grok:auth-json" | "claude:credentials-json" = ...

Workflow guides

Last updated on