From 4d021a4634a6bc84ee25f0d43cbc6450d94265f0 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Mon, 31 Jul 2023 14:08:34 +0700
Subject: google sing up

---
 src/lib/auth/components/LoginDesktop.jsx | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'src/lib/auth/components/LoginDesktop.jsx')

diff --git a/src/lib/auth/components/LoginDesktop.jsx b/src/lib/auth/components/LoginDesktop.jsx
index 8ce2e4e3..74d259a8 100644
--- a/src/lib/auth/components/LoginDesktop.jsx
+++ b/src/lib/auth/components/LoginDesktop.jsx
@@ -3,11 +3,15 @@ import useLogin from '../hooks/useLogin'
 import Link from '@/core/components/elements/Link/Link'
 import PageContent from '@/lib/content/components/PageContent'
 import Alert from '@/core/components/elements/Alert/Alert'
+import {useSession, signIn, SignOut} from 'next-auth/react'
 
 const LoginDesktop = () => {
   const { handleSubmit, handleChangeInput, isLoading, isValid, alert, emailRef, passwordRef } =
     useLogin()
 
+  const {data : session } = useSession
+  console.log('ini google', session)
+
   return (
     <DesktopView>
       <div className='container mx-auto'>
@@ -60,6 +64,13 @@ const LoginDesktop = () => {
                 {!isLoading ? 'Masuk' : 'Loading...'}
               </button>
             </form>
+            <button
+                type='submit'
+                className='btn-red w-full mt-2'
+                onClick={() => signIn()}
+              >
+                Masuk dengan google
+              </button>
 
             <div className='text-gray_r-11 mt-10'>
               Belum punya akun Indoteknik?{' '}
-- 
cgit v1.2.3

