This should be the tutorial for Auth.js. Clean and precise, no extra stuff needed (prisma, database, etc). Thanks!! Instead of use , 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.
Hi, fantastic job, I've coded as you did and using session as props every ting works as intended... Cant get 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
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
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.