I Think I'll Put Authentication on Hold for Now

0

I've been working on Plughub for a while now, and one of the capabilities I've been looking forward to building is Authentication.

I thought it would be a fairly straightforward addition to what we already had with Email and Storage.

Well, I was wrong. 😂

The moment I started looking into it properly, I realised there was a lot more to consider than just allowing users to register, log in and log out.

There were questions about how users and identities should be represented, how sessions should work, how OAuth providers should be integrated, how account linking should be handled, and how developers would connect everything to their existing databases.

Then came the question of whether I should build the authentication engine myself or use something like Better Auth.

I initially thought using an existing solution would make things easier. And in some ways, it probably would.

But then I started thinking about what Plughub is supposed to be.

I don't want to create a package that simply wraps another library, exposes most of its configuration and calls it a day. I want Plughub to provide something useful on its own.

So I started thinking about how Better Auth could fit behind Plughub's own interfaces, how Email could integrate with it, how database persistence should work, and how developers could use the package without being forced into a particular framework or project structure.

Before I knew it, I was spending more time reasoning about the architecture than actually building anything.

And honestly, I got to a point where I thought: maybe I should leave this alone for a bit.

Not because I don't want to build Auth anymore, but because I don't want to rush into an architectural decision that I'll regret later.

I think there's a difference between taking your time to understand a problem and getting stuck trying to make every decision perfect before moving forward. I'm still learning to recognise that difference.

So, for now, I'm putting Auth aside.

I've been considering Rate Limiting as the next capability to work on.

It's something applications need, and it gives me another opportunity to explore how Plughub handles things like storage backends, configuration and framework integration.

I could start with a simple fixed-window implementation, support in-memory storage first, then look into Redis for distributed applications.

It also gives me room to keep improving the architecture without having to solve every authentication problem at once.

One thing I don't want is for Plughub to become a project where I spend months planning capabilities without actually shipping them.

I'll come back to Auth. I just want to give myself enough time to think through it properly.

For now, Rate Limiting might be the next thing.

That's where things stand with Plughub at the moment.

And if you've ever started building something that turned out to be considerably more complicated than you expected, you probably understand what I mean.

0 comments

Back to reading

No comments yet. Be the first.