useAuth.ts 123 B

123456
  1. export function useAuth() {
  2. const token = localStorage.getItem("token");
  3. return {
  4. isAuthenticated: !!token,
  5. };
  6. }