import { applyAuthChoiceLoadedPluginProvider } from "../plugins/provider-auth-choice.js"; import type { ApplyAuthChoiceParams, ApplyAuthChoiceResult } from "./auth-choice.apply.types.js"; import type { AuthChoice } from "./onboard-types.js";
export type { ApplyAuthChoiceParams, ApplyAuthChoiceResult } from "./auth-choice.apply.types.js";
if (normalizedParams.authChoice === "token" || normalizedParams.authChoice === "setup-token") { thrownew Error(
[
`Auth choice "${normalizedParams.authChoice}" was not matched to a provider setup flow.`, 'For Anthropic legacy token auth, use "setup-token" with tokenProvider="anthropic" or choose the Anthropic setup-token entry explicitly.',
].join("\n"),
);
}
if (normalizedParams.authChoice === "oauth") { thrownew Error( 'Auth choice "oauth" is no longer supported directly. Use "setup-token" for Anthropic legacy token auth or a provider-specific OAuth entry.',
);
}
return { config: normalizedParams.config };
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.