fix(frontend): support cookie_bundle candidate in AuthCaptureDialog and refreshAuth

This commit is contained in:
liumangmang
2026-06-02 09:52:43 +08:00
parent 4f9acdc99c
commit b77ea21ca8
4 changed files with 45 additions and 9 deletions
+4 -2
View File
@@ -427,7 +427,7 @@ export const customPagesApi = {
create: (data: CustomPageForm) => api.post<CustomPageData>('/api/custom-pages', data),
update: (id: number, data: Partial<CustomPageForm>) => api.put<CustomPageData>(`/api/custom-pages/${id}`, data),
delete: (id: number) => api.delete(`/api/custom-pages/${id}`),
refreshAuth: (id: number) => api.post<{ success: boolean; message: string }>(`/api/custom-pages/${id}/refresh-auth`),
refreshAuth: (id: number) => api.post<{ success: boolean; message: string; warning?: string }>(`/api/custom-pages/${id}/refresh-auth`),
}
// ——— Remote browser sessions ———
@@ -492,7 +492,7 @@ export interface AuthCaptureSession {
}
export interface AuthCaptureCandidate {
type: 'bearer_token' | 'cookie' | 'credential' | 'api_key'
type: 'bearer_token' | 'cookie' | 'cookie_bundle' | 'credential' | 'api_key'
source: string
preview: string
label: string
@@ -500,6 +500,8 @@ export interface AuthCaptureCandidate {
value?: string
cookie_name?: string
cookie_value?: string
cookie_count?: number
cookie_names?: string[]
new_api_user?: string
}