We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb122b7 commit 90adbd2Copy full SHA for 90adbd2
src/database/useDatabaseRef.ts
@@ -112,7 +112,7 @@ export function _useDatabaseRef(
112
if (promise.value === newPromise) {
113
error.value = reason
114
}
115
- return Promise.reject(reason) // propagate the error
+ throw reason // propagate the error
116
})
117
.finally(() => {
118
// ensure the current promise is still valid
src/server/app-check.ts
@@ -51,6 +51,13 @@ export function VueFireAppCheckServer(
51
expireTimeMillis,
52
53
54
+ .catch((reason) => {
55
+ console.error(
56
+ '[VueFire]: Error getting AppCheck token from the server:',
57
+ reason
58
+ )
59
+ throw reason
60
+ })
61
},
62
}),
63
isTokenAutoRefreshEnabled: false,
0 commit comments