mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
[backport core/1.42] fix: broken Firebase auth gate in API layer (#10881)
Backport of #10115 to `core/1.42` Automatically created by backport workflow. Co-authored-by: Matt Miller <matt@miller-media.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { promiseTimeout, until } from '@vueuse/core'
|
||||
import axios from 'axios'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { get } from 'es-toolkit/compat'
|
||||
import { trimEnd } from 'es-toolkit'
|
||||
import { ref } from 'vue'
|
||||
@@ -414,9 +415,10 @@ export class ComfyApi extends EventTarget {
|
||||
|
||||
if (authStore.isInitialized) return
|
||||
|
||||
const { isInitialized } = storeToRefs(authStore)
|
||||
try {
|
||||
await Promise.race([
|
||||
until(authStore.isInitialized),
|
||||
until(isInitialized).toBe(true),
|
||||
promiseTimeout(10000)
|
||||
])
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user