refactor(auth): remove unused provider hook · openclaw/openclaw@1579d83
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import { resolveProviderMatch } from "../plugins/provider-auth-choice-helpers.js
|
3 | 3 | import { resolvePluginProviders } from "../plugins/provider-auth-choice.runtime.js"; |
4 | 4 | import type { ProviderAuthKind } from "../plugins/types.js"; |
5 | 5 | import { normalizeTokenProviderInput } from "./auth-choice.apply-helpers.js"; |
6 | | -import type { ApplyAuthChoiceParams, ApplyAuthChoiceResult } from "./auth-choice.apply.types.js"; |
| 6 | +import type { ApplyAuthChoiceParams } from "./auth-choice.apply.types.js"; |
7 | 7 | import type { AuthChoice } from "./onboard-types.js"; |
8 | 8 | |
9 | 9 | function resolveProviderAuthChoiceByKind(params: { |
@@ -65,10 +65,3 @@ export function normalizeApiKeyTokenProviderAuthChoice(params: {
|
65 | 65 | }) ?? params.authChoice |
66 | 66 | ); |
67 | 67 | } |
68 | | - |
69 | | -/** Reserved extension point for historical api-provider auth application flows. */ |
70 | | -export async function applyAuthChoiceApiProviders( |
71 | | -_params: ApplyAuthChoiceParams, |
72 | | -): Promise<ApplyAuthChoiceResult | null> { |
73 | | -return null; |
74 | | -} |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -61,7 +61,6 @@ vi.mock("./auth-choice.apply.api-providers.js", () => {
|
61 | 61 | ); |
62 | 62 | }; |
63 | 63 | return { |
64 | | -applyAuthChoiceApiProviders: vi.fn(async () => null), |
65 | 64 | normalizeApiKeyTokenProviderAuthChoice: (params: { |
66 | 65 | authChoice: string; |
67 | 66 | tokenProvider?: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。