@adventurelabs/scout-core 2.0.10 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -282,7 +282,12 @@ function useJwtMintLifecycle({ enabled, supabase, identity, cacheKey, ttlSec, re
|
|
|
282
282
|
authUserIdRef.current !== userId) {
|
|
283
283
|
return;
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
if (cached.data && !cached.isStale) {
|
|
286
|
+
updateMint(cached.data);
|
|
287
|
+
}
|
|
288
|
+
else if (!mintRef.current) {
|
|
289
|
+
updateMint(cached.data);
|
|
290
|
+
}
|
|
286
291
|
}
|
|
287
292
|
catch (cacheError) {
|
|
288
293
|
console.warn(`[ScoutRefreshProvider] ${cacheKey} cache load failed:`, cacheError);
|