@finema/finework-layer 0.2.18 → 0.2.19
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 +2 -0
- package/app/composables/useAuth.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -81,12 +81,12 @@ export const useAuth = () => {
|
|
|
81
81
|
timestamp.value = t
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
const isShouldFetch =
|
|
84
|
+
const isShouldFetch = () => {
|
|
85
85
|
if (!value.value || !timestamp.value) return true
|
|
86
86
|
|
|
87
87
|
// expire after 1 min - fetch if timestamp is older than 1 minute ago
|
|
88
88
|
return Date.now() - timestamp.value > 1000 * 60 * 1
|
|
89
|
-
}
|
|
89
|
+
}
|
|
90
90
|
|
|
91
91
|
return {
|
|
92
92
|
value,
|