@finema/finework-layer 0.2.16 → 0.2.17

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.17](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.16...0.2.17) (2025-10-20)
4
+
3
5
  ## [0.2.16](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.2.15...0.2.16) (2025-10-20)
4
6
 
5
7
  ### Performance Improvements
@@ -84,8 +84,8 @@ export const useAuth = () => {
84
84
  const isShouldFetch = computed(() => {
85
85
  if (!value.value) return true
86
86
 
87
- // expire 1 mins
88
- return !timestamp.value || timestamp.value < Date.now() - 1000 * 60 * 1
87
+ // expire after 1 min - fetch if timestamp is older than 1 minute ago
88
+ return !timestamp.value || Date.now() - timestamp.value > 1000 * 60 * 1
89
89
  })
90
90
 
91
91
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.2.16",
4
+ "version": "0.2.17",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",