summaryrefslogtreecommitdiff
path: root/src/lib/auth/components
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-07-31 14:08:34 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-07-31 14:08:34 +0700
commit4d021a4634a6bc84ee25f0d43cbc6450d94265f0 (patch)
treeee54bf52a3b11dabe52a746d5c0c4110232eef8e /src/lib/auth/components
parent8e608aecc663960a91e1f39472bfcb6ad477eab2 (diff)
google sing up
Diffstat (limited to 'src/lib/auth/components')
-rw-r--r--src/lib/auth/components/LoginDesktop.jsx11
1 files changed, 11 insertions, 0 deletions
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?{' '}