Hey everyone!
I’m excited to share a new library with you all: Magic Auth! It’s an authentication library for Phoenix projects that aims to make your life as a developer easier by offering an authentication solution with minimal setup effort.
Why I Built Magic Auth
While phx.gen.auth
is amazing, it can require a significant amount of time to implement all the necessary flows, such as password resets, recovery screens, and UI customization. Magic Auth is designed to simplify authentication, requiring virtually the same minimal effort as implementing a BASIC HTTP authentication flow, but with much more power!
What Magic Auth Brings to the Table
Here’s a quick rundown of the key features:
• Ship Faster : No time wasted configuring password resets and recovery flows—just implement and ship your product.
• Passwordless Authentication : Secure login process through one-time passwords sent via email. One-time passwords are better than magic links because users can receive the code on one device (e.g., phone email) and enter it on another (e.g., desktop browser).
• Enhanced Security : Protect your application from brute force attacks with built-in rate limiting and account lockout mechanisms.
• Customizable Interface : Use the beautiful default UI components out of the box, or customize them fully to match your design perfectly.
• Effortless Configuration and Comprehensive Documentation : Quick and simple integration with your Phoenix project, with detailed guides and references to assist you through every step of the integration process.
• Schema Agnostic : Implement authentication without requiring a user schema—ideal for everything from MVPs to complex applications.
Why This Matters
I’m deeply passionate about making the Elixir/Phoenix ecosystem the go-to choice for building MVPs and startups. I truly believe Elixir and Phoenix have unmatched potential for speed, scalability, and developer happiness.
Authentication can often be a roadblock, especially when you’re moving fast to validate ideas or launch a product. Magic Auth removes that friction so you can spend less time on boilerplate and more time building something awesome.
Check out Magic Auth on GitHub: GitHub - gushonorato/magic_auth: An Elixir authentication library designed for effortless setup.. Give it a try, and let me know your thoughts! Your feedback can help shape Magic Auth into an even better tool for the community.
Let’s make the Elixir/Phoenix ecosystem the best place to build startups and MVPs.
Cheers,
Gustavo
P.S. Feel free to ask questions or share your thoughts. I’d love to hear how Magic Auth can help your projects!