TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

32 点作者 furrowedbrow大约 4 年前
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 条评论

heliodor大约 4 年前
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;.
gunshowmo大约 4 年前
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 未加载
tylerrobinson大约 4 年前
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.
mimixco大约 4 年前
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.
ecesena大约 4 年前
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.)
brendanmc6大约 4 年前
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 未加载
omk大约 4 年前
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_user大约 4 年前
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?
readonthegoapp大约 4 年前
Laravel spark is something im using but not actively charging for<p>You need customers for that
shanecleveland大约 4 年前
Mostly Flask with helper packages. But also userbase.com for howsyourblank.com and just a phone number for textpost.me :)
Zoo3y大约 4 年前
<a href="https:&#x2F;&#x2F;memberstack.webflow.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;memberstack.webflow.io&#x2F;</a>
andrecp11大约 4 年前
Flask with jwt Stripe for bills
e2e4大约 4 年前
Firebase for the auth