♻️ Move more Passport stuff

This commit is contained in:
2024-08-12 16:41:21 +08:00
parent 48da7d1a46
commit 65cd4139f0
5 changed files with 389 additions and 4 deletions

View File

@ -21,7 +21,7 @@ const config = useRuntimeConfig()
const route = useRoute()
const router = useRouter()
const userinfo = useUserinfo()
const auth = useUserinfo()
const props = defineProps<{ loading?: boolean; currentFactor?: any; ticket?: any }>()
const emits = defineEmits(["update:loading"])
@ -31,7 +31,7 @@ const error = ref<string | null>(null)
async function load() {
emits("update:loading", true)
await getToken(props.ticket.grant_token)
await userinfo.readProfiles()
await auth.readProfiles()
setTimeout(() => callback(), 1850)
}