feat(lst): tan stack routes added with protected routes
This commit is contained in:
11
frontend/src/utils/auth.ts
Normal file
11
frontend/src/utils/auth.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export function isAuthenticated() {
|
||||
return localStorage.getItem("isAuthenticated") === "true";
|
||||
}
|
||||
|
||||
export function signIn() {
|
||||
return localStorage.setItem("isAuthenticated", "true");
|
||||
}
|
||||
|
||||
export function signOut() {
|
||||
return localStorage.removeItem("isAuthenticated");
|
||||
}
|
||||
Reference in New Issue
Block a user