aboutsummaryrefslogtreecommitdiff
path: root/src/hooks/useAuth.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-10 13:47:02 +0300
committereug-vs <eug-vs@keemail.me>2020-08-10 13:47:02 +0300
commit78218c0f3427ad79de003ac59cffb99b08f0ae7d (patch)
tree1d5220d68ab8ebb392c87038f2fc24cc72b28775 /src/hooks/useAuth.tsx
parent35fcdceb8f04fe333d45c5b1cb7ba395352c92d6 (diff)
downloadwhich-ui-78218c0f3427ad79de003ac59cffb99b08f0ae7d.tar.gz
fix: resolve eslint errors
Diffstat (limited to 'src/hooks/useAuth.tsx')
-rw-r--r--src/hooks/useAuth.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hooks/useAuth.tsx b/src/hooks/useAuth.tsx
index ed1e428..2f03a33 100644
--- a/src/hooks/useAuth.tsx
+++ b/src/hooks/useAuth.tsx
@@ -8,14 +8,14 @@ import useLocalStorage from './useLocalStorage';
interface ContextType {
- user: User | null,
+ user: User | undefined,
login: (username: string, password: string, remember?: boolean) => Promise<boolean>;
logout: () => void;
isAuthenticated: boolean;
}
const authContext = createContext<ContextType>({
- user: null,
+ user: undefined,
login: async () => false,
logout: () => {},
isAuthenticated: false