Skip to content
Snippets Groups Projects
Commit 7d8abb6f authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

cleanup

parent 09d4dc0e
No related branches found
No related tags found
1 merge request!13Feat.next auth
Pipeline #35288 failed
......@@ -46,7 +46,6 @@ export const authOptions: NextAuthOptions = {
id: user.id + '',
email: user.email,
name: user.name,
randomKey: 'Hey cool'
}
}
})
......@@ -59,7 +58,6 @@ export const authOptions: NextAuthOptions = {
user: {
...session.user,
id: token.id,
randomKey: token.randomKey
}
}
},
......@@ -70,7 +68,6 @@ export const authOptions: NextAuthOptions = {
return {
...token,
id: u.id,
randomKey: u.randomKey
}
}
return token
......@@ -79,4 +76,4 @@ export const authOptions: NextAuthOptions = {
}
const handler = NextAuth(authOptions)
export { handler as GET, handler as POST }
\ No newline at end of file
export { handler as GET, handler as POST }
......@@ -11,7 +11,7 @@ import { useState } from 'react'
export const LoginForm = () => {
const router = useRouter()
const searchParams = useSearchParams()
const callbackUrl = searchParams.get('callbackUrl') || '/dashboard'
const callbackUrl = searchParams.get('callbackUrl') || '/home'
const [email, setEmail] = useState('')
const [password, setPassword] = useState('')
const [error, setError] = useState('')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment