Authentication has been a topic of fascination for me over the last several months. I have been researching all of the available options that I can find. If you follow me on YouTube, then you might have seen my video about authentication methods. Since creating that video, I stumbled upon SuperTokens, and I have to say... I am impressed.
That being said, SuperTokens is for a specific use case—web apps created with
SuperTokens is good for several reasons:
- It is simple to set up (with
- It is open source.
- You can easily self-host it (I'm working on the CapRover One-Click App).
- It integrates with your Node.js API.
Some of the (current) drawbacks of SuperTokens include:
- There are not supported SDKs for other frameworks.
- There are not supported SDKs for other backends.
Keeping in mind these limitations, this is the perfect use case for SuperTokens:
SaaS web application built with CRA on a subdomain
Let me explain.
You probably do not want to use
create-react-app for a landing page because you want to optimize SEO. So instead, you choose Next.js or Gatsby. But those are annoying to build apps in, so you use
create-react-app for the app itself. Host the app on
https://app.yourdomain.com and the landing page on
https://yourdomain.com. Then boom. Easy authentication with better SEO. And your authentication is not bound by vendor lockin because you can selfhost it.
This is my current strategy for TickerTab.