Daddo
Daddo
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
no problem 🙂
94 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
94 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
94 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
94 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
ok, I got your error
94 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
94 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
yes
94 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
94 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?
94 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
94 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
94 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
94 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?
94 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
94 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,
94 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
94 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
wat
94 replies
TTCTheo's Typesafe Cult
Created by şiar_619 on 12/19/2024 in #questions
credential login with NextAuth
share the full file
94 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?
94 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
94 replies