We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56939ff commit f222a5cCopy full SHA for f222a5c
functions/react_auth.js
@@ -0,0 +1,6 @@
1
+export const isAuthenticated = () => {
2
+ const token = localStorage.getItem("token");
3
+ //console.log("Token:", token); // Debugging
4
+ return token !== null;
5
+};
6
+
0 commit comments