fix: ensure apiClient initialization and update resource queries in authentication flow

This commit is contained in:
Mo Tarbin
2026-02-10 00:42:25 -05:00
parent 1ce7749826
commit 9c115efecb
6 changed files with 33 additions and 15 deletions

View File

@@ -16,12 +16,12 @@ class ApiClient {
this.refreshCooldown = 3 * 1000 // 3 seconds in milliseconds
}
async init() {
async init(force = false) {
if (this.initPromise) {
return this.initPromise
}
if (this.initialized) {
if (this.initialized && !force) {
return Promise.resolve()
}