From b6f6bf23f90ff0dfadf9bf0af8866c2cfc17aa9c Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Fri, 18 Aug 2023 11:02:39 +0700
Subject: handling redirect login

---
 src/core/components/layouts/BasicLayout.jsx | 10 ----------
 1 file changed, 10 deletions(-)

(limited to 'src/core/components/layouts/BasicLayout.jsx')

diff --git a/src/core/components/layouts/BasicLayout.jsx b/src/core/components/layouts/BasicLayout.jsx
index 0fea1a3b..272440c2 100644
--- a/src/core/components/layouts/BasicLayout.jsx
+++ b/src/core/components/layouts/BasicLayout.jsx
@@ -20,18 +20,8 @@ const BasicLayout = ({ children }) => {
   const [payloadWA, setPayloadWa] = useState(null)
 
   const router = useRouter()
-  const { data: session } = useSession()
-  const auth = getAuth()
-  const setting = async () => {
-    setCookie('auth', JSON.stringify(session?.odooUser))
-  }
 
   useEffect(() => {
-    if (!auth && session) {
-      setting()
-    }
-    console.log('ini auth', auth)
-    console.log('ini session', session)
     const getIP = async () => {
       const ip = await odooApi('GET', '/api/ip-address')
       const data = {
-- 
cgit v1.2.3

