AlviA
Convex Community5d ago
4 replies
Alvi

Does convex provide .getAuthState()?

I want to get the is Authenticated in the same initial load useEffect. Using isAuthenticated mean that i should but it into effect dependencies resulting in wrong effect behavior since i want the effect to run only on load/mount. Having a getAuthState() would be super useful in this scenario since i can await it inside the effect itself and mainainijg an empty dependency array
Was this page helpful?