Re:Ask HN: What do you use to build auth?
by jaeming on Wednesday June 29, 2022 @05:53PM
(#31926153)
Yes, that's why I said "the basics are really easy"? This was not meant to imply 10 lines of code handle the complete user experience workflow around auth. In saying that I have implemented oauth for multiple providers in not too much more lines of code. Maybe like 100.
Re:Ask HN: What do you use to build auth?
by tppiotrowski on Wednesday June 29, 2022 @12:37PM
(#31922511)
Also two-factor auth via email/SMS codes
Two factor is actually pretty easily solved too though?
If authentication isn't your core business there's little reason to handle all these things yourself.
You are presenting an extremely limited scope.
What you get from using an authentication provider is things like verifying email addresses, OAuth where you just have to "enable" Google, Github, Apple login possibilities. Implementing all these flows yourself is a lot more than 10 lines of code.
Then you also have to do password reset flows, resent email confirmation emails etc.