Live data from Hacker News

From Supabase to Clerk to Better Auth

blog.val.town

161–170 of 259 posts

Re: From Supabase to Clerk to Better Auth

#161
post #65

Earlier quoted context omitted.

"home built auth system" is bound to have "random SSO issues". You fix them, that's how things mature.

Yep, it’s just a drag. It’s not our core product value so any effort we put into it is a drag.

Rather than just use an email solution Google built GMail into a massive email solution despite it not being a core product

Sometimes that's just an opportunity

Re: From Supabase to Clerk to Better Auth

#162
post #34

Using Clerk, quite unhappy with it. No proper RBAC (roles are tied to organizations, not stored on user itself, so you cannot have a concept of global admin or something like that, unless you use metadata for storing arbitrary key value paris), and more than once in the past weeks/months it had a downtime causing the whole app to fail. Would think twice before using it in the future.

You're conflating authentication and authorization.

Clerk is an authentication provider for the most part, it concerns itself with telling you who the user is. Based on that your business logic should be able to determine what they are entitled to do.

They offer a Org/Role based RBAC but since you're doing something different I'd just scrap it entirely and roll your own authorization flow, they have a guide that'll help you get your own started here: https://clerk.com/docs/guides/secure/basic-rbac

Re: From Supabase to Clerk to Better Auth

#163
post #34

Using Clerk, quite unhappy with it. No proper RBAC (roles are tied to organizations, not stored on user itself, so you cannot have a concept of global admin or something like that, unless you use metadata for storing arbitrary key value paris), and more than once in the past weeks/months it had a downtime causing the whole app to fail. Would think twice before using it in the future.

Disclaimer: I work for a Clerk competitor, FusionAuth. Can you share your evaluation process? I'm always curious how folks evaluate auth providers. Did you do a spike? Full POC across a couple of solutions? Rely on a recommendation from a friend? Run through a quickstart and decide it worked and you had bigger problems to solve? Something else?

Nice website! I like your docs too. Small tip though, the couple obviously AI-written articles (ostensibly for SEO purposes) in your footer are a little of a code smell.

Also design wise, the main logo item (vortex looking thingy) is a tad bit complex, maybe think about a redesign focused on making it more simple/recognizable. The rotating dashes on the landing page hero are a good motif though, so I'd lean into that.

Also noticed that on this page: https://fusionauth.io/tech-papers/winter-2026-g2-fusionauth-... the form under "To get this tech paper complete the form below." doesn't load on Firefox with Enhanced Tracking Protection enabled. Disabling it causes the form to load though.

Re: From Supabase to Clerk to Better Auth

#164
Super validating, as someone who was recently tempted to use Supabase for a project and decided to give Better Auth a shot instead. It's really made things super simple so far to the point I was semi-worried I'd missed a crucial step. But nope, they just thought of everything.

Re: From Supabase to Clerk to Better Auth

#165

So let me be the one to invite ridicule and scorn by admitting I wrote my own auth code. It was fiddly and boring at the same time. It also wasn’t rocket science, and it works well. I’ll be the first to admit that there are cases where this is a bad idea, I’m just responding to the chants of never roll your own auth. Knowing every single line of code involved allowed me to add some location-based functionality for on…

I'm actually surprised val.town outsources it. So what you're doing makes sense to me.

Re: From Supabase to Clerk to Better Auth

#166

Can someone more intelligent then me tell me why should I offload my postgres users table to some 3rd party provider? Like what is so hard about keeping that table in my VM on hetzner that I have to give it off to someone else? It's not payments, it's just a few fields of data

It’s just a few fields until it’s not. SSO, SAML, SCIM, OIDC, OAuth, 2FA, passwordless auth, verification tokens, etc etc, And, variations of each for wildly popular systems you’ll be expected to integrate with but don’t support the exact spec. For a while at my company, half our support engineers time went to handling random SSO issues that came up in our home built auth system.

Just use Ory Kratos and self host it.

Re: From Supabase to Clerk to Better Auth

#167
post #70

Earlier quoted context omitted.

I must as intelligent as you because I also never understood why things like supabase even exist. I believe this shows how much front-end dev world is detached from how things can simple and secure by default.

Do you say the same about AWS RDS. Are you saying VMs is all you need and it is a doddle for anyone with FE only experience to set up, maintain and scale.

Yes many people do say the same about AWS RDS.

Re: From Supabase to Clerk to Better Auth

#168

Earlier quoted context omitted.

Couldn’t you get Claude to go into Supabase’s auth code and make your custom like their’s but adapted to your stack?

"Claude, make my custom like their's but adapted to my stack. Make no mistakes"

This is not funny because people are doing that for real.

Re: From Supabase to Clerk to Better Auth

#169

Earlier quoted context omitted.

Couldn’t you get Claude to go into Supabase’s auth code and make your custom like their’s but adapted to your stack?

"Claude, make my custom like their's but adapted to my stack. Make no mistakes"

And don’t hallucinate.

Re: From Supabase to Clerk to Better Auth

#170

Can someone more intelligent then me tell me why should I offload my postgres users table to some 3rd party provider? Like what is so hard about keeping that table in my VM on hetzner that I have to give it off to someone else? It's not payments, it's just a few fields of data

It’s just a few fields until it’s not. SSO, SAML, SCIM, OIDC, OAuth, 2FA, passwordless auth, verification tokens, etc etc, And, variations of each for wildly popular systems you’ll be expected to integrate with but don’t support the exact spec. For a while at my company, half our support engineers time went to handling random SSO issues that came up in our home built auth system.

That’s when you install Keycloak.
Post reply on HN