Building Passwordless Email Auth in Rails: Magic links are less magical than you think
notes
i don't think avoiding authentication libraries is as clear cut as this article makes it out to be. with that said, i find these skeleton implementations to be an excellent learning resource and it's worth considering their tradeoffs when you choose or choose not to offload your authentication to a provider or library.
link
summary
This article provides a step-by-step guide to implementing email-based passwordless authentication in a Rails application. It explores different approaches, such as using existing gems or building a custom solution, and ultimately decides to build a custom solution. The author details the process of creating a secure and user-friendly authentication system, covering aspects like token generation, email delivery, user verification, session management, and logging out.