4 ms·
How to set up authentication using Next-Auth in just 1 hour 30 mins
- jacksonzheng 2y agoIt took me over 2 months to make this video, and I tried super hard to condense it down to the essentials, building up from first principles. It has everything you need: Email magic link Google OAuth Role Based Access Control Postgres DB (easy deployment with Docker) Automatic database cleanup Automatic account linking Freedom for the user to change their username Freedom for them to switch Google Accounts Fully styled sign-in form Reusable components ready to copy and paste And much more. Here's the video: https://youtu.be/TLGFTH4s_0Y?si=f_9CI_yK7E4ejjaO https://youtu.be/TLGFTH4s_0Y?si=f_9CI_yK7E4ejjaO The code is linked in the description. What do you think?