glad to see you tackled the issue I brought up in one of your videos about next-auth, though I will still be using lucia for the control it gives me, plus there's seemingly no way to disable the built in login / signup pages provided by next-auth, which I find very annoying
Be aware because you send the password in the data when using useSession in the frontend , juste handle in the session callback if(session.user.password){ delete session.user.password), I know it send the encrypted password but it's important
Teşekkür ederiz. Next.js 15 Drizzle Postgresql NextAuth bunlar çok gözde konular. 1,5 yılda epey beğeni toplar. Bir seri olarak düşünürmüsün mesala bu konuları ?
this was pretty helpful, my issue is if i just do credentials provider without any oauth providers i get an annoying error in the console always "credentials not supported with database strategy" it still works but the error is so annoying, you know any way to avoid it?
Be careful! The redirect_uri is not associated with this application. Hatasının sebebi ne olabilir. credentional da normal çalışıyor github ta hataveriyor
export async function loginWithGithub() { await signIn("github", { redirect: true, redirectTo: process.env.NEXT_PUBLIC_BASE_URL, }) } eğer bu kod parçasını kullanıyorsan, .env dosyanda NEXT_PUBLIC_BASE_URL 'ın tanımlı olmasına dikkat et. Ayrıca bu adres github'da oluşturduğun appdeki Homepage URL ve Callback URL ile eşleşmeli. örnek olarak: .env: NEXT_PUBLIC_BASE_URL = localhost:3000 homepage: localhost:3000 callback url: localhost:3000/api/auth/callback/github
is nobody able to bring up a COMPLETE template? nice that email and db session here works. but without email verification and 2fa with loginform + email link come on guys it's not the year 2000 where simple email+pw was enough...
Your work is incredibly valuable. I'm not sure what more I can do for you than liking this video.
thanks! don't make it a big deal just one cup of coffee/tea would be fine at Paper..
Thank you men, Im crying, it just works
you solved the problem i was battling for more than a week. YOU ARE GREAT
glad to see you tackled the issue I brought up in one of your videos about next-auth, though I will still be using lucia for the control it gives me, plus there's seemingly no way to disable the built in login / signup pages provided by next-auth, which I find very annoying
You can customize the pages
@@unknownguywholovespizza no way to disable, though
please make a full stack app tutorial with the best practices and handling the edge cases as well most of the tutorials dont do that
Hi, thank for these videos it really help a lot.
I was doing the same thing but it’s throwing errors now. and also auto deleting cookie after login
Be aware because you send the password in the data when using useSession in the frontend , juste handle in the session callback if(session.user.password){ delete session.user.password), I know it send the encrypted password but it's important
This is exactly what I need!
Great work! It helped me a lot, thank you!
I didnt see your middleware, how did you protect your route ?
Teşekkür ederiz. Next.js 15 Drizzle Postgresql NextAuth bunlar çok gözde konular. 1,5 yılda epey beğeni toplar. Bir seri olarak düşünürmüsün mesala bu konuları ?
Rica ederim. Olur isterim, 15 çıktığında böyle bi seri yapabilirim aslında
this was pretty helpful, my issue is if i just do credentials provider without any oauth providers i get an annoying error in the console always "credentials not supported with database strategy"
it still works but the error is so annoying, you know any way to avoid it?
Thank you so much. Can you add role based authorization
Sure will do!
Also, if I use the Prisma Adapter or Drizzle Adapter with database strategy I cannot use middleware? is there anything I can do about that?
The log out seems not deleting the session from the database. Any clue?
if you read the next auth documentation, there is a session strategy jwt
....
@@howtocode2296 can it be used with social providers though?
@@ugurcodes i still not yet trying for the social providers. perhaps separate the auth config too
I wonder, how does someone use this way to do RBAC and is it possible to use with middleware?
why do you store in db access_token and refresh_token?
Thanks mate
Be careful! The redirect_uri is not associated with this application. Hatasının sebebi ne olabilir. credentional da normal çalışıyor github ta hataveriyor
export async function loginWithGithub() {
await signIn("github", {
redirect: true,
redirectTo: process.env.NEXT_PUBLIC_BASE_URL,
})
}
eğer bu kod parçasını kullanıyorsan, .env dosyanda NEXT_PUBLIC_BASE_URL 'ın tanımlı olmasına dikkat et. Ayrıca bu adres github'da oluşturduğun appdeki Homepage URL ve Callback URL ile eşleşmeli.
örnek olarak:
.env:
NEXT_PUBLIC_BASE_URL = localhost:3000
homepage: localhost:3000
callback url: localhost:3000/api/auth/callback/github
@@ugurcodes Teşekkür ederim. https kullanmışım http yapınca düzeldi
@@mehmethanifierenler3612 rica ederim 😇
can you please make a series of Next Auth as you created for lucia
yes I can! what should be the next video then :)
Thanks a Lot
also if you want to use facebook its not work
Very good ✌️
is nobody able to bring up a COMPLETE template? nice that email and db session here works. but without email verification and 2fa with loginform + email link come on guys it's not the year 2000 where simple email+pw was enough...