@vyro-x/react-auth
Advanced tools
Comparing version 1.5.10 to 1.5.11
@@ -37,3 +37,2 @@ "use strict"; | ||
await (0, refresh_1.refresh)(); | ||
checkIsAuthenticated(); | ||
} | ||
@@ -60,4 +59,3 @@ catch (err) { | ||
handleRefresh(); | ||
}, 1000 * 30); // 0.5 minutes | ||
// }, 1000 * 60 * 5); // 5 minutes | ||
}, 1000 * 60 * 5); // 5 minutes | ||
return () => clearInterval(timer); | ||
@@ -67,3 +65,3 @@ }, [isAuthenticated]); | ||
(0, react_1.useEffect)(() => { | ||
if (!!(0, tokens_1.getAccessToken)()) { | ||
if (checkIsAuthenticated()) { | ||
handleRefresh(); | ||
@@ -70,0 +68,0 @@ } |
{ | ||
"name": "@vyro-x/react-auth", | ||
"description": "Client authentication", | ||
"version": "1.5.10", | ||
"version": "1.5.11", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
34242
728