@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
- updateMint(cached.data);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adventurelabs/scout-core",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Core utilities and helpers for Adventure Labs Scout applications",
5
5
  "exports": {
6
6
  "./client": {