We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8160136 commit f4ed3ebCopy full SHA for f4ed3eb
src/App.tsx
@@ -44,7 +44,8 @@ const ProtectedRoute = ({ children }: { children: JSX.Element }) => {
44
return;
45
}
46
47
- await getUserInfoApi(currentUserId);
+ const response = await getUserInfoApi(currentUserId);
48
+ setIsAuthenticated(response.isSuccess);
49
} catch (error) {
50
setIsAuthenticated(false);
51
0 commit comments