TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How are you implementing membership/auth for your SaaS or other project?

32 pointsby furrowedbrowabout 4 years ago
I have a side project that will involve subscriptions. I would like to offload as much of the db/code overhead that comes with membership data, auth, payment processing, etc, as possible, without paying enterprise-level fees. I thought about having a Squarespace site and just integrating my backend API, but I'm thinking my application will be just complex enough to prohibit that approach. What is everyone using, and what small-scale third party membership integrations do you suggest? Any feedback appreciated.

13 comments

heliodorabout 4 years ago
One approach:<p>There are skeleton projects for each framework (Django, Node, etc.) that will take care of all this. One-time fee. You&#x27;ll have to maintain it. But it&#x27;s great to get started.<p>Basically, search for &quot;saas boilerplate&quot; or &quot;saas skeleton&quot;.
gunshowmoabout 4 years ago
I do sessions-based authentication via my API server. You can implement this in quite a few ways, but I think Redis is pretty common for the speed. I think there are libraries in most languages that should implement this in some way or another, but it isn&#x27;t too hard to do by yourself either.<p>JWT also works very well if you don&#x27;t need the ability to immediately revoke access, since in an efficient JWT implementation, you&#x27;d only be refreshing the token at specific intervals.<p>I also have a couple of flows set up to authenticate users via the Facebook and Google OAuth APIs, tying them to my own users&#x27; accounts.
评论 #26852452 未加载
tylerrobinsonabout 4 years ago
Stripe Billing handles subscriptions and renewals. From there you’re just a few webhooks away from tying that with whatever auth solution you go with.
mimixcoabout 4 years ago
We use Chargify for handling subscription signups and taking money. It connects with Auth0 for our user authentication and management. They&#x27;re both inexpensive and you can set them up by yourself.
ecesenaabout 4 years ago
Check out <a href="https:&#x2F;&#x2F;github.com&#x2F;saasform&#x2F;saasform" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;saasform&#x2F;saasform</a><p>(I&#x27;m a co-founder, feel free to reach out directly.)
brendanmc6about 4 years ago
Firebase Auth is my go-to, but I don&#x27;t consider myself an expert as I only work with TypeScript and React&#x2F;Nextjs. I still have to do some hands on work managing the user session, and relating users to other related records in Firestore. And their prebuilt UI components can be problematic. And of course I have to keep user data in sync with payment state by handling Stripe events.<p>I&#x27;d love to find something even more hands-off for my next project...
评论 #26859191 未加载
omkabout 4 years ago
I have a side project successfully utilising Firebase auth. But do understand that this is a “sticky” approach. Moving away (for whatever reasons) is difficult. You want to have a clear migration strategy if you opt for 3rd party auth mechanism. You don’t want a vendor owning your customers. I have heard of Auth0 and would recommend exploring it for the reason that OAuth based approaches will provide you decent portability.
评论 #26859182 未加载
评论 #26842323 未加载
raleigh_userabout 4 years ago
Very interested in this. I’ve written this in multiple projects. Have always thought it’d be cool to extract out but never got too.<p>I’ve used auth0 before. It was way easier to understand than Okta.<p>Why do you think your site would be too complex?
readonthegoappabout 4 years ago
Laravel spark is something im using but not actively charging for<p>You need customers for that
shaneclevelandabout 4 years ago
Mostly Flask with helper packages. But also userbase.com for howsyourblank.com and just a phone number for textpost.me :)
Zoo3yabout 4 years ago
<a href="https:&#x2F;&#x2F;memberstack.webflow.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;memberstack.webflow.io&#x2F;</a>
andrecp11about 4 years ago
Flask with jwt Stripe for bills
e2e4about 4 years ago
Firebase for the auth