Daddo
Daddo
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
no problem 🙂
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
I'm looking at the code and I noticed that you have two nextauth configs. Also you're using nextauth v5, which has a new syntax to get handlers. Move authOptions in server/auth/config.ts (rename it to authConfig and replace the existing one) In app/api/auth/[...nextauth]/route.ts leave only:
import { handlers } from "~/server/auth";

export const { GET, POST } = handlers
import { handlers } from "~/server/auth";

export const { GET, POST } = handlers
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
sorry, I have to rest a couple of hours, I'll check later
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
try adding a custom sign in page
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
ok, I got your error
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
tbh I need to sleep, but I'll try to help you before going
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
yes
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
maybe even put the project on github
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
can you share the full file?
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
just return the user and comment out the lines related to the password
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
you should see the default nextauth one
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
try manually adding a user in prisma studio
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
you said you pushed the changes to the db right?
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
in session, just above the error
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
sorry, change the line to:
strategy: "jwt" as const,
strategy: "jwt" as const,
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
add
"jwt" as const
"jwt" as const
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
wat
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
share the full file
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
are there errors in the terminal?
92 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
start it and try to sign up/in
92 replies