How to set up authentication using Next-Auth in just 1 hour 30 mins (youtube.com) 5 points by jacksonzheng 2y ago ↗ HN
[–] jacksonzheng 2y ago ↗ It 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 linkGoogle OAuthRole Based Access ControlPostgres DB (easy deployment with Docker)Automatic database cleanupAutomatic account linkingFreedom for the user to change their usernameFreedom for them to switch Google AccountsFully styled sign-in formReusable components ready to copy and pasteAnd much more.Here's the video: https://youtu.be/TLGFTH4s_0Y?si=f_9CI_yK7E4ejjaOThe code is linked in the description.What do you think?
1 comment
[ 3.0 ms ] story [ 11.0 ms ] threadIt 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
The code is linked in the description.
What do you think?