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 = { ...@@ -46,7 +46,6 @@ export const authOptions: NextAuthOptions = {
id: user.id + '', id: user.id + '',
email: user.email, email: user.email,
name: user.name, name: user.name,
randomKey: 'Hey cool'
} }
} }
}) })
...@@ -59,7 +58,6 @@ export const authOptions: NextAuthOptions = { ...@@ -59,7 +58,6 @@ export const authOptions: NextAuthOptions = {
user: { user: {
...session.user, ...session.user,
id: token.id, id: token.id,
randomKey: token.randomKey
} }
} }
}, },
...@@ -70,7 +68,6 @@ export const authOptions: NextAuthOptions = { ...@@ -70,7 +68,6 @@ export const authOptions: NextAuthOptions = {
return { return {
...token, ...token,
id: u.id, id: u.id,
randomKey: u.randomKey
} }
} }
return token return token
...@@ -79,4 +76,4 @@ export const authOptions: NextAuthOptions = { ...@@ -79,4 +76,4 @@ export const authOptions: NextAuthOptions = {
} }
const handler = NextAuth(authOptions) const handler = NextAuth(authOptions)
export { handler as GET, handler as POST } export { handler as GET, handler as POST }
\ No newline at end of file
...@@ -11,7 +11,7 @@ import { useState } from 'react' ...@@ -11,7 +11,7 @@ import { useState } from 'react'
export const LoginForm = () => { export const LoginForm = () => {
const router = useRouter() const router = useRouter()
const searchParams = useSearchParams() const searchParams = useSearchParams()
const callbackUrl = searchParams.get('callbackUrl') || '/dashboard' const callbackUrl = searchParams.get('callbackUrl') || '/home'
const [email, setEmail] = useState('') const [email, setEmail] = useState('')
const [password, setPassword] = useState('') const [password, setPassword] = useState('')
const [error, setError] = 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