feat: support upstream token refresh

This commit is contained in:
liumangmang
2026-06-30 14:34:40 +08:00
parent 2d1dcb8f9f
commit c5bb63cf82
15 changed files with 895 additions and 140 deletions
+13 -1
View File
@@ -112,7 +112,18 @@ const props = defineProps<{
const emit = defineEmits<{
(e: 'update:modelValue', v: boolean): void
(e: 'select', candidate: { type: string; value: string; source: string; cookie_name?: string; cookie_value?: string; cookie_count?: number; cookie_names?: string[]; new_api_user?: string; user_id?: string }): void
(e: 'select', candidate: {
type: string
value: string
source: string
cookie_name?: string
cookie_value?: string
cookie_count?: number
cookie_names?: string[]
new_api_user?: string
user_id?: string
refresh_token?: string
}): void
}>()
const visible = ref(props.modelValue)
@@ -330,6 +341,7 @@ async function confirmImportSelection() {
cookie_names: fullCandidate.cookie_names,
user_id: resolveNewApiUser(rawResult.data.result, fullCandidate),
new_api_user: resolveNewApiUser(rawResult.data.result, fullCandidate),
refresh_token: fullCandidate.refresh_token,
})
closeDialog()
} catch (e: any) {