Master NextAuth v5: Next.js Authentication Made Easy

preview_player
Показать описание


Learn the latest version of next-auth v5!
Рекомендации по теме
Комментарии
Автор

This should be the tutorial for Auth.js. Clean and precise, no extra stuff needed (prisma, database, etc). Thanks!!

Instead of use <Link>, in signOut or signIn you can redirect using redirectTo property. For example:

signIn('github', { redirectTo: '/' })
signOut({ redirectTo: '/signIn' })

There are more with new Auth v5.

engineererick
Автор

amazing video regarding Auth.js with Next.js and OAuth. best video on youtube i could find so far. Keep it up :)

ddtalents
Автор

Fantastic video. Also, I cant find the part 2 video you mentioned about integration with a DB

IamJustin-tkwz
Автор

Hi, fantastic job, I've coded as you did and using session as props every ting works as intended... Cant get <SessionProvider session={session}> to work is always null or undefined, only is populated when the page is refreshed, it worked on previous versions of Auth v5 beta, can you help? Thanks in advanced

alvesbernardino
Автор

how set basePath in nextjs 14 and next auth beta v5? I have add basePath in next.config.mjs and add basePath in sessionProvider but still error

milisstudio
Автор

AuthJS has probably the worst documentation I've seen. What's sad is that the reason the docs are bad is not because they don't have enough people or resources to write proper documentation, but because the creator is so opinionated that he refuses to write docs on any auth methods (credentials provider) that he "doesn't believe in" and thinks authJS should be reserved for "competent" and "senior" people that know the depths of auth (as if that will somehow help them understand authJS's custom abstractions) so that's his excuse for poor documentation.

nasko
Автор

Thanks. I love you tuto. It's the best 👏🏼

karizarecord
Автор

nextauth is so frustrating to deal with ever since v5

matthew
Автор

im a big fan of yours !!! from korea. As changed to auth.js, it was difficult to find the correct content accordingly, thank you very much.

uprisingalpha
Автор

i have a problem when i set "use client" on any component or page i get this error: Module not found: Can't resolve 'child_process', is there any fix for this or i need to set whole project to be server side somehow idk if thats possible

pavlesimisic