News for hackers. Stuff that matters.
Re:From Supabase to Clerk to Better Auth by tornikeo on Wednesday May 06, 2026 @03:29PM (#48040573)
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
Re:From Supabase to Clerk to Better Auth by therealpygon on Wednesday May 06, 2026 @03:44PM (#48040777)
Why pay someone to build a house? I’m sure you could do it yourself…but that doesn’t mean that is the best use of your time in all cases. The analogy is basic but apt; not everyone needs or wants to run (or create) every mechanism. I don’t do all of my own hosting either and it’s not because I couldn’t, it’s that it isn’t worthwhile in my cases.

To expand a bit more: if a business is faced with a choice to save some money by increasing risk, having people who’s job it isn’t managing and supposedly securing that information, or to have a third-party who job is literally to handle and worry about those things, who carries independent insurance, and who is on the hook if they lose customer data, and in exchange the business is simply taking the risk of associating with business that could do a poor job — which of those options sounds more appealing from a business sense? It’s a lot easier to blame someone else than earn back trust for your own major mistakes because you tried to write your own software to save a little money.

That’s the SaaS value proposition.

Re:From Supabase to Clerk to Better Auth by pietz on Wednesday May 06, 2026 @03:59PM (#48040955)
This comment is more ridiculous than ever in 2026.
Re:From Supabase to Clerk to Better Auth by arikrahman on Wednesday May 06, 2026 @04:30PM (#48041350)
Yes the analogy doesn't work here because that is much more cost prohibitive and labor intensive.
Re:From Supabase to Clerk to Better Auth by ajdegol on Wednesday May 06, 2026 @04:36PM (#48041430)
Because of AI or because hackers are hyper targeting infra clusters?
Re:From Supabase to Clerk to Better Auth by dnnddidiej on Wednesday May 06, 2026 @05:06PM (#48041848)
Emperor, meet clothes.
Re:From Supabase to Clerk to Better Auth by gessha on Wednesday May 06, 2026 @05:26PM (#48042096)
If you’re implying that people should __always__ roll their own services and never vendor out non-core parts, the security industry would love to learn where you work.
Re:From Supabase to Clerk to Better Auth by notatoad on Wednesday May 06, 2026 @03:54PM (#48040895)
>that doesn’t mean it’s the best use of your time in all cases

Okay, so… what are those cases? I’m also curious.

Re:From Supabase to Clerk to Better Auth by elevation on Wednesday May 06, 2026 @04:24PM (#48041269)
> Okay, so… what are those cases? I’m also curious.

If you're willing to make a third party SaaS's uptime the ceiling for your own org, you can delegate auth. Github might not be a good choice for SSO.

If you're not threatened by per-user-per-month fees, you can delegate auth.

If your threat model is compatible with a third party having visibility into your user's network location and the frequency and duration of their activities across your org, you can delegate auth. (Okta will probably not inform your competitor that your main sales guy is in North Carolina this week and has logged in from the conference room wifi of your competitor's main client.)

If you can trust the third party to not allow an interloper to bypass your requirements, you can delegate auth.

Re:From Supabase to Clerk to Better Auth by the__alchemist on Wednesday May 06, 2026 @05:09PM (#48041895)
I see Postgres etc as the builder. Supabase is more like the realtor; a middle man extracting profits and complicating the situation.
Re:From Supabase to Clerk to Better Auth by Orygin on Thursday May 07, 2026 @05:45AM (#48047389)
Does Postgres talk OpenID connect directly? Does it integrate SAML easily?

Oh you still have to build the auth system yourself? Well maybe a realtor does sound good now.

Re:From Supabase to Clerk to Better Auth by cpursley on Thursday May 07, 2026 @08:37AM (#48048648)
No, but most serious major stacks have officially supported or popular maintained libraries which handle all of this out of the box already.
Re:From Supabase to Clerk to Better Auth by fnoef on Thursday May 07, 2026 @04:05AM (#48046728)
This is such an absurd take.

For starters, if I'm a "house builder" by trade, then yeah, I am going to build the house myself. Otherwise, why should the client pay me, and not the guy I'm subcontracting?

Secondly, there is no such thing as a "house builder" profession. It consists of a lot of different trades people, some of them having legal power to sign off your house build (for example an electrician). Now, we could try to push for something similar in software engineering, and say require you to have an "authentication engineering certificate" in order to handle code related to auth, and only a person holding the certificate can allow such code for production use. But I'm pretty sure all the vibe coders and tech bros will cry how unfair and bureaucratic the system is.

But of course the entire SWE profession is based on grifting, and extracting as much money as possible from the customers while cutting the costs. If you are so afraid to save passwords to a database, then at least don't call yourself a software engineer.

Re:From Supabase to Clerk to Better Auth by square_usual on Thursday May 07, 2026 @10:51AM (#48050171)
> For starters, if I'm a "house builder" by trade

You're not a house builder, you're a widget maker who needs a house to live in. Auth is almost never your startup's core competency or offering. Spending one of your very valuable five engineers on the auth tarpit while you lose deals because SSO is hard could be life and death for you.

Re:From Supabase to Clerk to Better Auth by therealpygon on Friday May 08, 2026 @05:16PM (#48068887)
Clearly!

It’s humorous that these conclusions are that the only option is SaaS or write it yourself, while my comments were about not doing things yourself, not that a SaaS is the only answer. Interesting that is how you felt the need to take it.

People are rarely as clever as they think they are at preventing others from doing something, while others only need to find one thing wrong. “Write it myself” is about the dumbest answer to that problem if you do not have the same level of resources to commit to that specific problem as can be solved by someone else.

Not really a hot take to state something so…basic..but you’re welcome to conclude what you like.

Re:From Supabase to Clerk to Better Auth by SkyPuncher on Wednesday May 06, 2026 @04:12PM (#48041114)
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.

Re:From Supabase to Clerk to Better Auth by jarym on Wednesday May 06, 2026 @04:36PM (#48041426)
"home built auth system" is bound to have "random SSO issues". You fix them, that's how things mature.
Re:From Supabase to Clerk to Better Auth by SkyPuncher on Wednesday May 06, 2026 @08:03PM (#48043623)
Yep, it’s just a drag. It’s not our core product value so any effort we put into it is a drag.
Re:From Supabase to Clerk to Better Auth by ButyTh0 on Wednesday May 06, 2026 @11:26PM (#48045091)
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 by jdmichal on Thursday May 07, 2026 @06:44AM (#48047818)
> ... not being a core product

Technically true, because Google's core product is ads. Also fundamentally wrong, because Gmail serves as a massive source of ad targeting information, in addition to being a high-engagement canvas to display those ads.

Re:From Supabase to Clerk to Better Auth by exi2 on Thursday May 07, 2026 @07:08AM (#48047967)
Google has not been scanning gmail mails for ad targeting since 2017. I think after 9 years we can finally let that one go.

Ad display I'll still grant you of course.

Re:From Supabase to Clerk to Better Auth by vinckr on Thursday May 07, 2026 @09:54AM (#48049502)
I don't think we can let that one go so easily, since they might not be scanning for ad targeting (pinky promise?) - but they most certainly will slurp everything up for their AI stuff: https://blog.google/products-and-platforms/products/gmail/gm...
Re:From Supabase to Clerk to Better Auth by ButyTh0 on Thursday May 07, 2026 @10:54AM (#48050202)
Sure, now it is.

It was an unproven long shot when they built it.

Re:From Supabase to Clerk to Better Auth by rubogubo on Wednesday May 06, 2026 @04:43PM (#48041522)
I'm guessing they simply didnt want to spend the time and money doing that
Re:From Supabase to Clerk to Better Auth by janderson215 on Wednesday May 06, 2026 @06:48PM (#48042922)
Possibly didn’t want to accept the additional risk that comes with rolling your own auth as well.
Re:From Supabase to Clerk to Better Auth by tomrod on Wednesday May 06, 2026 @09:07PM (#48044176)
Supabase's auth is MIT licensed and OSS, is it not?

https://github.com/supabase/auth/blob/master/LICENSE

Re:From Supabase to Clerk to Better Auth by ctm92 on Wednesday May 06, 2026 @10:12PM (#48044609)
Supabase is OSS but it's a real pain to actually self host it
Re:From Supabase to Clerk to Better Auth by theturtletalks on Wednesday May 06, 2026 @11:02PM (#48044956)
Couldn’t you get Claude to go into Supabase’s auth code and make your custom like their’s but adapted to your stack?
Re:From Supabase to Clerk to Better Auth by linkregister on Wednesday May 06, 2026 @11:13PM (#48045014)
"Claude, make my custom like their's but adapted to my stack. Make no mistakes"
Re:From Supabase to Clerk to Better Auth by ofrzeta on Thursday May 07, 2026 @12:25AM (#48045377)
This is not funny because people are doing that for real.
Re:From Supabase to Clerk to Better Auth by fakedang on Thursday May 07, 2026 @01:39AM (#48045794)
Exhibit A, mi.
Re:From Supabase to Clerk to Better Auth by kahnclusions on Thursday May 07, 2026 @12:58AM (#48045548)
And don’t hallucinate.
Re:From Supabase to Clerk to Better Auth by theturtletalks on Thursday May 07, 2026 @03:16AM (#48046400)
You’ll have to drive the agent to do it, not a one-shot task. It’ll also require you to understand your codebase.
Re:From Supabase to Clerk to Better Auth by impulser_ on Wednesday May 06, 2026 @05:10PM (#48041900)
Majority of apps are B2C apps, they don't need any of this.

All you need is Apple and Google Oauth.

Re:From Supabase to Clerk to Better Auth by sandeepkd on Wednesday May 06, 2026 @07:28PM (#48043245)
If you are just starting out its probably a good idea. Think about the use case when google bans either your app or bans your app user?
Re:From Supabase to Clerk to Better Auth by deaux on Wednesday May 06, 2026 @10:37PM (#48044766)
Then your business is entirely screwed anyway because you've just lost half the market

At least to me it sounded very much like they were talking about mobile.

Re:From Supabase to Clerk to Better Auth by mooreds on Wednesday May 06, 2026 @06:13PM (#48042597)
It depends on your use case.

If you are a B2C app, you are probably more concerned about:

- social providers (Apple and Google being the big ones, but others could play a role--FB or Tiktok for example)

- easy registration (but not too easy, you want to avoid bot spam)

- self-service account management (updating profile fields, consents [CCPA, GDPR, others], resetting passwords

- single sign-on between your apps (if you have multiple)

- language support (for your backend, and mobile/web front end)

- cost

- possibly MFA, possibly passkeys

Re:From Supabase to Clerk to Better Auth by amluto on Wednesday May 06, 2026 @07:23PM (#48043197)
Is this perhaps a reason to have a Users table that is separate from the table of data on how you authenticate that user?
Re:From Supabase to Clerk to Better Auth by sreekanth850 on Wednesday May 06, 2026 @11:20PM (#48045064)
I don’t know when we became this lazy. Auth is hard, sure, but putting your users table and sessions behind a vendor API is not something cool. Tell me one feature that is not supported by libraries like OpenIddict (You can build around) or Keycloak?
Re:From Supabase to Clerk to Better Auth by sevenzero on Thursday May 07, 2026 @02:54AM (#48046267)
I think the main argument usually is time savings. Personally I just always do E-Mail and password auth, yea its old and not the shiny new thing, but it doesn't require me to integrate 200 different ways of doing auth.

We should be able to demand users remembering their passwords, I dont like to cater towards users who simply dont want to put in the work to use my product.

Will I lose potential users over this? Yes. Does it feel bad knowing I am in control and wont have to offload to 3rd party vendors? Hell no.

Re:From Supabase to Clerk to Better Auth by sreekanth850 on Thursday May 07, 2026 @03:17AM (#48046412)
Same here, Just email + password, no google dependency initially. If more users ask we will think of it. but again you don't need a cloud vendor for all this.
Re:From Supabase to Clerk to Better Auth by dotancohen on Thursday May 07, 2026 @03:47AM (#48046614)
That's great for B2C, but B2B demands SSO.
Re:From Supabase to Clerk to Better Auth by sevenzero on Thursday May 07, 2026 @03:57AM (#48046681)
Not really, we do B2B. E-mail & password is good enough for our customers. They really really dont care about what kinda auth we use.
Re:From Supabase to Clerk to Better Auth by Orygin on Thursday May 07, 2026 @05:41AM (#48047368)
Great for you but that's not the case for a lot of B2B contracts we have. A lot of them require integrating with their SSO, not just for login but for permissions too
Re:From Supabase to Clerk to Better Auth by sevenzero on Thursday May 07, 2026 @12:40PM (#48051535)
Do permissions follow the same model everywhere with SSO or do you now have to set up permission logic everywhere for new customers? Like company A uses "admin" as role while company B uses "management" for essentially the same role?
Re:From Supabase to Clerk to Better Auth by williamdclt on Thursday May 07, 2026 @10:23AM (#48049863)
Depends on your industry I guess. My personal experience is that small-to-medium companies ask for SSO, large and enterprise _require_ it.
Re:From Supabase to Clerk to Better Auth by zarzavat on Thursday May 07, 2026 @11:46AM (#48050825)
You do you but most businesses if given the option between supporting OAuth to reduce friction on signups, or only supporting password auth, will choose the option that makes them more money.

You don't have to use a 3rd party service for OAuth. You can do it in house.

Re:From Supabase to Clerk to Better Auth by sevenzero on Thursday May 07, 2026 @12:38PM (#48051494)
Yea I know, I just don't want my app to have a google logo on it, or whatever other companies people use to login with. E-mail and password will forever be my go to solution.

I want intentional users not the ones that click "sign up with google", try out the app once and never come back. Also I don't have the time to learn how to properly integrate more auth methods into my app. I want my own user table, I want predictability on how a user model looks and I want to be in control of everything.

Re:From Supabase to Clerk to Better Auth by selfmodruntime on Thursday May 07, 2026 @05:14AM (#48047212)
Well the disadvantage is that you're responsible for your companies keycloak.
Re:From Supabase to Clerk to Better Auth by Gareth321 on Thursday May 07, 2026 @05:23AM (#48047266)
Exactly. Do you want to become ops? Because that's how you become an ops team.
Re:From Supabase to Clerk to Better Auth by hylaride on Thursday May 07, 2026 @09:40AM (#48049318)
If you're a SaaS vendor, you want to make onboarding and logging in as easy as possible and being able to do things like add a "login with google/apple" button or other third party SAML/SSO tooling is one way to do that. Supporting that workflow sucks as it can involve very finicky integrations involving certificate trusts, etc.
Re:From Supabase to Clerk to Better Auth by whstl on Thursday May 07, 2026 @12:30PM (#48051387)
Those authentication providers require you to do the same Google/Apple OAuth certificate configuration yourself, and you even have to pay the 99 euros for Apple.

SAML/SSO is indeed finicky, but the problematic part (mapping attributes) is often done by IT teams, ESPECIALLY if you use a third-party provider.

Re:From Supabase to Clerk to Better Auth by grinich on Thursday May 07, 2026 @01:17PM (#48052019)
WorkOS has a built-in workflow for all the complex SAML/SCIM attribute mapping.

https://workos.com/docs/directory-sync/attributes

Also certificate renewal flows:

https://workos.com/changelog/certificate-renewal-flow

(I'm the founder.)

Re:From Supabase to Clerk to Better Auth by SkyPuncher on Friday May 08, 2026 @08:01AM (#48061870)
Not sure what laziness has to do with this. It’s all about tradeoffs.

Auth isn’t something I want to think about. There are a lot of hidden traps.

Re:From Supabase to Clerk to Better Auth by sebmellen on Thursday May 07, 2026 @12:08AM (#48045279)
Just use Ory Kratos and self host it.
Re:From Supabase to Clerk to Better Auth by EtienneK on Thursday May 07, 2026 @01:04AM (#48045586)
That’s when you install Keycloak.
Re:From Supabase to Clerk to Better Auth by faangguyindia on Thursday May 07, 2026 @02:57AM (#48046294)
is it just me? who just uses magic links delivered via email or telegram as backup?
Re:From Supabase to Clerk to Better Auth by vinckr on Thursday May 07, 2026 @09:55AM (#48049523)
Personally I hate magic links via email with a passion and will actively avoid products that have this as the only authentication method
Re:From Supabase to Clerk to Better Auth by moooo99 on Thursday May 07, 2026 @05:12AM (#48047191)
> 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.

fwiw, we also have entire staff dealing with SSO issues among our employees and users, despite relying on external services to handle auth.

A problem domain as complex as authentication is bound to habe issues of some sort. But I am not sure if I would be so fond of „outsourcing“ something as integral to my services as the access to these services

Re:From Supabase to Clerk to Better Auth by Gareth321 on Thursday May 07, 2026 @05:22AM (#48047259)
There is a trust component for sure, but a business requires assessing the value of time against revenue. I can say for our org that using an off the shelf solution like Clerk saves us time and money and we believe the risk is very small relative to the savings. Maybe the cost for you is not large right now, but when you've got 20 enterprise customers all asking for specific OIDC integrations configured with Private Link, custom domains, and private clusters, an auth solution starts looking mighty fine.
Re:From Supabase to Clerk to Better Auth by eddythompson80 on Wednesday May 06, 2026 @03:37PM (#48040680)
Don't you wanna level up your career to become an architect? You can draw a box, call it "User Management" and slap "Clerk" or some other SaaS on it, and assume it's managed for you. This allows you to shove whatever requirements you want in that magic blackbox as you feel "it doesn't bring value" for you to implement.
Re:From Supabase to Clerk to Better Auth by oompydoompy74 on Wednesday May 06, 2026 @03:37PM (#48040670)
BetterAuth is users in your own database. So you don’t have to!
Re:From Supabase to Clerk to Better Auth by tornikeo on Thursday May 07, 2026 @12:45PM (#48051587)
Why better auth and not, postgres in docker? What is it better about better auth compared to the ol reliable postgres?
Re:From Supabase to Clerk to Better Auth by oompydoompy74 on Saturday May 09, 2026 @08:30AM (#48074457)
I think you are misunderstanding. Better Auth just uses your existing database… It’s just a library.
Re:From Supabase to Clerk to Better Auth by normie3000 on Wednesday May 06, 2026 @03:39PM (#48040693)
AuthN is hard and generic, authZ is easy and specific. Offload authN, and keep your users table in your Hetzner.
Re:From Supabase to Clerk to Better Auth by mvkel on Wednesday May 06, 2026 @03:36PM (#48040660)
Start any greenfield project, hand-coded auth takes up 50% of the development time of the entire MVP
Re:From Supabase to Clerk to Better Auth by awestroke on Wednesday May 06, 2026 @03:45PM (#48040787)
It takes like an hour. So that's a quick mvp then
Re:From Supabase to Clerk to Better Auth by transitorykris on Wednesday May 06, 2026 @03:49PM (#48040828)
Social logins, email logins, password resets, multi-tenant, organizations, many to many users to organizations, etc etc. Not necessary for MVP, but can definitely be painful hacking in later if the MVP hits.
Re:From Supabase to Clerk to Better Auth by koliber on Wednesday May 06, 2026 @03:58PM (#48040944)
What you are talking about is in a large part authentication. You can do authentication using an external service and still have your user table locally. You can also do authorization locally with a local session table while leaving authentication to a SaaS.
Re:From Supabase to Clerk to Better Auth by RedShift1 on Wednesday May 06, 2026 @04:08PM (#48041079)
By the time you're so big you need all of that, there will be other people at the table to "hack that in".
Re:From Supabase to Clerk to Better Auth by SkyPuncher on Wednesday May 06, 2026 @04:13PM (#48041121)
I strongly disagree. If you’re selling to other businesses, much of that is an expectation.
Re:From Supabase to Clerk to Better Auth by xmcp123 on Wednesday May 06, 2026 @04:37PM (#48041445)
All I am seeing here is Django modules
Re:From Supabase to Clerk to Better Auth by pdimitar on Wednesday May 06, 2026 @04:48PM (#48041601)
Social logins, multi-tenant and organizations are very far from table-stakes for an MVP.

Whether it's painful to put in later or not is sadly nothing that the managers and executives concern themselves with.

Re:From Supabase to Clerk to Better Auth by Orygin on Thursday May 07, 2026 @05:50AM (#48047417)
Depends on the company and product. The SSO/Social login, multi tenant and multi platform are indeed needed for my MVP.
Re:From Supabase to Clerk to Better Auth by pdimitar on Thursday May 07, 2026 @08:55AM (#48048847)
Indeed it depends of course. Though I don't find it fair for those requirements to be presented as table-stakes and required, as my original parent comment seems to have done.
Re:From Supabase to Clerk to Better Auth by the__alchemist on Wednesday May 06, 2026 @05:11PM (#48041919)
Django, Rails etc handles this.
Re:From Supabase to Clerk to Better Auth by mvkel on Wednesday May 06, 2026 @09:10PM (#48044196)
So... you just have to not build your web app in the most popular web app language? Somehow i think there will be big time debt from that decision
Re:From Supabase to Clerk to Better Auth by the__alchemist on Thursday May 07, 2026 @10:02AM (#48049616)
Those are both very popular languages for web backends, and both of those platforms are mature and robust.
Re:From Supabase to Clerk to Better Auth by xmcp123 on Friday May 08, 2026 @01:20PM (#48066111)
Not as big as the debt you will get from having to implement it all yourself. And it's not like he's suggesting you use cobol - there is not an issue of finding people who can work with both rails and django, so the popularity isn't really relevant.
Re:From Supabase to Clerk to Better Auth by xmcp123 on Wednesday May 06, 2026 @04:37PM (#48041439)
…use Django, install auth modules
Re:From Supabase to Clerk to Better Auth by jadbox on Wednesday May 06, 2026 @06:46PM (#48042898)
I feel seen. It's compounded if you also need to add HIPAA row-level security compliance that spans to every form of resource.
Re:From Supabase to Clerk to Better Auth by princevegeta89 on Wednesday May 06, 2026 @11:15PM (#48045021)
I would disagree here. You probably need OAuth with popular social services and implement username, password or OTP-based auth overall. For an MVP, you don't need to care about more details beyond this; it is hardly 10% of the entire effort, if not 5%.
Re:From Supabase to Clerk to Better Auth by cpursley on Thursday May 07, 2026 @12:44PM (#48051582)
Mature frameworks generally handle auth out of the box.
Re:From Supabase to Clerk to Better Auth by jarek83 on Wednesday May 06, 2026 @04:43PM (#48041525)
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.
Re:From Supabase to Clerk to Better Auth by dnnddidiej on Wednesday May 06, 2026 @05:05PM (#48041824)
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.
Re:From Supabase to Clerk to Better Auth by kevmo314 on Thursday May 07, 2026 @12:11AM (#48045295)
Yes many people do say the same about AWS RDS.
Re:From Supabase to Clerk to Better Auth by f3408fh on Wednesday May 06, 2026 @08:47PM (#48044023)
Yeah you’re a bit confused. Supabase has nothing to do with frontend other than providing SDKs and some frontend components to integrate with their backend.
Re:From Supabase to Clerk to Better Auth by pbalau on Wednesday May 06, 2026 @05:01PM (#48041781)
You are not supposed to offload your users table, you are supposed to offload your password field.
Re:From Supabase to Clerk to Better Auth by the__alchemist on Wednesday May 06, 2026 @05:08PM (#48041870)
I am just as confused as you. My 2c: For a broad range of requirements, running your DB directly and managing auth with Django or similar is easier. Perhaps at enterprise scale, this changes.
Re:From Supabase to Clerk to Better Auth by jonas21 on Wednesday May 06, 2026 @06:04PM (#48042498)
That's what they did. They migrated to Better Auth, which stores everything in your DB. It's the equivalent of Django auth for the Typescript ecosystem.
Re:From Supabase to Clerk to Better Auth by il on Wednesday May 06, 2026 @05:22PM (#48042050)
People are very scared of messing up authentication and getting hacked. They would rather offload that responsibility to a third party and not think about it.
Re:From Supabase to Clerk to Better Auth by sandeepkd on Wednesday May 06, 2026 @07:26PM (#48043223)
Unfortunately this is a common premise and on surface its a good idea too to let a expert in particular domain handle it. Where it gets muddy is when this third party are themselves learners and just see this as a good business opportunity
Re:From Supabase to Clerk to Better Auth by mooreds on Wednesday May 06, 2026 @06:16PM (#48042625)
I wrote an article about this: https://ciamweekly.substack.com/p/ciam-for-the-single-applic...

The tl;dr of the article is that there are auth specific features that are not differentiated but that users expect. Just like you might outsource pieces of functionality like data storage and message sending to specialized servers/libraries/applications, you can do the same with authentication.

The article could use some improvements, tbh, it is 2.5 years old.

Re:From Supabase to Clerk to Better Auth by giancarlostoro on Wednesday May 06, 2026 @07:28PM (#48043244)
The only project where this was the case that I didn't hate it was at a former employer, and it gave the responsibility of securing users to Auth0 and minimized our PII and attack surface, since even the login page was not hosted or controlled by us. Worse case you somehow hacked our users and got some free entree reward they had, otherwise good luck trying to get very little data.

It allowed us to do SSO for small one-off marketing / campaign focused sites. I could give a specific login URL and it would always log you in if you were already logged on.

Re:From Supabase to Clerk to Better Auth by rubslopes on Wednesday May 06, 2026 @07:55PM (#48043541)
People are afraid to touch dangerous things, like passwords and payment systems. Depending on their skill level, they should indeed be afraid.
Re:From Supabase to Clerk to Better Auth by sevenzero on Thursday May 07, 2026 @03:40AM (#48046563)
I roll both of these at work, from auth to cashless payments to regular online payments. It's not as hard as people make it out to be. Probably a lot harder at big companies with huge attack surfaces and attention though.
Re:From Supabase to Clerk to Better Auth by sudoshred on Wednesday May 06, 2026 @09:38PM (#48044378)
Some people enjoy vendor locked managed services for their core infrastructure. Typically this decision is made when building from zero to one in resource constrained environments, and the long term play is to move to your own table/db when it becomes sustainable to do so. The only reason to move to a managed service after having done the work to setup self owned systems is when you need to either a) CYA or b) reduce headcount
Re:From Supabase to Clerk to Better Auth by cpard on Wednesday May 06, 2026 @09:47PM (#48044452)
It feels like a good idea when you are early on in building your product and what matters is quickly iterating on the core features that define your product.

It’s not just the table, it’s also the auth and many other things that you know you will need but you would prefer to focus on other stuff.

Almost always you start by saying that you will replace that when the time comes and you have proved you have a product and now it’s time to actually build the real thing.

Some teams do that and some other, never migrate away and that’s how the GTM of companies like Clerk works.

Re:From Supabase to Clerk to Better Auth by Viveletta on Thursday May 07, 2026 @01:45AM (#48045835)
I'm working at a tiny non-IT company. Outsourcing this work and the security of not having my non IT trained coworkers being able to touch the server is great (but a VM would do the same ofcourse, while costing money). Most of all, we currently don't even need paid tiers of supabase since our software is so small.

Given, I feel if you run supabase at a big company you are either lazy and probably have too much budget to spend on useless costs.

Re:From Supabase to Clerk to Better Auth by egorfine on Thursday May 07, 2026 @04:13AM (#48046785)
Because auth is a productivity tarpit. Anything plan on doing with auth looks simple but almost never is. Homegrown auth can easily sunk half of your dev and support teams.

Of course, we're not talking about email/password with "remember me" checkbox kind of auth.

Re:From Supabase to Clerk to Better Auth by aatd86 on Thursday May 07, 2026 @05:11AM (#48047190)
I wonder if it is not people being notoriously lazy or clueless at an astonishing degree. How often do you hear that password were saved in plaintext? Surprisingly high in this day and age.

People not knowing what salt and pepper is... Vulnerabilities almost as if on purpose...

Perhaps it is actually not THAT hard but just like error handling, people don't want to do the unsexy parts and want to delegate those tasks to someone else perhaps. There must be a behavioral pattern there...

Re:From Supabase to Clerk to Better Auth by selfmodruntime on Thursday May 07, 2026 @05:17AM (#48047228)
Your comment has a bit of an inexperienced smell. Business auth infinitely more complex than saving a user and salting/hashing his password.

> There must be a behavioral pattern there...

The pattern is that your comment is very far from reality.

Re:From Supabase to Clerk to Better Auth by aatd86 on Thursday May 07, 2026 @10:19AM (#48049815)
My point is that people mess up things as basic as salt and pepper, or encryption at rest. People are not even trying...

If we deal with the intricacies of rbac, abac, acl mixed with scopes ,sso, saml, oidc, mfa, etc... I don't find these too conceptually, complex.

I mean, it should be avoidable complexity. Most of the complexity is technical debt, bad implementations etc. But by itself it is not THAT complex.

Re:From Supabase to Clerk to Better Auth by selfmodruntime on Saturday May 09, 2026 @03:42AM (#48072829)
No. OIDC and in general identity management + entitlements in a large business organization is complex because we need that complexity.
Re:From Supabase to Clerk to Better Auth by aatd86 on Friday May 15, 2026 @09:55AM (#48148642)
We are speaking about incidental complexity vs. essential/inherent complexity. Inherent complexity is dealing with an XML format that is prone to vulnerabilities because people don't know how to parse properly or the protocol was badly spec'd back in the day in the case SAML for instance. Or ill-defined scopes, etc...

Having had the chance to try and implement libraries to interface with those systems a couple times, most people agree that implementations are far from perfect or streamlined. We call this incidental/accidental complexity.

Re:From Supabase to Clerk to Better Auth by egorfine on Thursday May 07, 2026 @05:15AM (#48047216)
> want to delegate those tasks to someone else perhaps

And this someone's name begins with "Cla" and ends with "ude".

So we're going to have a lot more vulnerabilities in the auth code going forward.

Re:From Supabase to Clerk to Better Auth by aatd86 on Thursday May 07, 2026 @10:21AM (#48049845)
Apparently a mythos loop will mitigate that. /jk

We will see I guess... It could also be an opportunity to audit systems in automated ways.

Re:From Supabase to Clerk to Better Auth by drbscl on Thursday May 07, 2026 @12:34PM (#48051440)
Better Auth is basically just a library / scripts that you run in your application.