Skip to content

Commit f222a5c

Browse files
committed
New: Simple js auth service added
1 parent 56939ff commit f222a5c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

functions/react_auth.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)