The Curse of Six Logins 0 ▲ Allen Pike 1 day ago · 6 min read1158 words · Tech · hide A large, venerable Rails monolith was finally getting a new, modern authentication system. Turbocharged by the power of agents, this work was meant to move 10x faster than it would have before AI. And some of it was indeed moving quickly! But there was a problem. The agents didn’t know what a login was. Sure, there was a user’s login – their username. But there was also their logins – their active sessions. There was also a frontend login form where users entered their login and created a login managed by a JavaScript LoginController. This all ran through a different, massive, server-side LoginsController, not to be confused with the Login model, which in some cases could be instantiated without having a login at all – say, via Google. On top of that were years of accreted login concepts from dependencies and acquisitions, plus a half-finished attempt to modernize auth back in ’21 called login-service – alongside its dutiful companion LoginService. There were a lot of logins – and… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town