diff options
Diffstat (limited to 'src/lib/auth/components/LoginDesktop.jsx')
| -rw-r--r-- | src/lib/auth/components/LoginDesktop.jsx | 11 |
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?{' '} |
