summaryrefslogtreecommitdiff
path: root/src/core/hooks/useAuth.js
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-20 17:03:28 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-20 17:03:28 +0700
commited950b23d50f9b3993cfd2ac2386a5b3a68d5e57 (patch)
tree0094beddcb6df11a3bc5347759caf4cf7aeada59 /src/core/hooks/useAuth.js
parente33a330786ffbfcd774de00dc697c6dff47faf27 (diff)
fix
Diffstat (limited to 'src/core/hooks/useAuth.js')
-rw-r--r--src/core/hooks/useAuth.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hooks/useAuth.js b/src/core/hooks/useAuth.js
index 488562f6..13f04454 100644
--- a/src/core/hooks/useAuth.js
+++ b/src/core/hooks/useAuth.js
@@ -1,3 +1,4 @@
+import { useEffect, useState } from "react"
import { getAuth } from "../utils/auth"
const useAuth = () => {
@@ -8,7 +9,7 @@ const useAuth = () => {
handleIsAuthenticated()
}, [])
- return [auth, setAuth]
+ return auth
}
export default useAuth \ No newline at end of file