Can I setup BetterAuth without a DB?
My Backend is managing by other team with Java Spring boot and my frontend is Nextjs and expo, I want to use BetterAuth but seems docs says I need to have a db, but my DB is managing by other team so why I need a db, why it can't work like Next Auth!! or am I missing here??
6 Replies
Your backend team has to develop auth, not you. You're responsible only for frontend
Next auth worked because it uses jwt, sessions are stored not in the DB, but in cookies
Yes @Vlad , in that case I no need to use BetterAuth right just NextAuth would be enough as I'll be using JWT session
And does BetterAuth supports for the Java?
Again, your backend team is responsible for auth. You shouldn't handle it because you work on frontend
Better auth doesn't support Java, it works only on JS/TS
okay thanks
so I think nextauth would be better for the session tokens right
https://www.better-auth.com/docs/concepts/database
You can use Redis
Database | Better Auth
Learn how to use a database with Better Auth.
You should get them from your backend friends