feat: support upstream token refresh
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user