diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index 33032730714bf672e2f95fc436df5e323e2407ea..ca23bf0048172357e7b851810e533570d35a2771 100644 --- a/app/api/auth/[...nextauth]/route.ts +++ b/app/api/auth/[...nextauth]/route.ts @@ -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 } diff --git a/components/auth-login-form.tsx b/components/auth-login-form.tsx index f932027bc6144faf6365e02a39ed38db0647e397..0b430e2f14433e70e84dd97803085e11f27b071b 100644 --- a/components/auth-login-form.tsx +++ b/components/auth-login-form.tsx @@ -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('')