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
Vlad
Vlad2mo ago
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
Muhammed
MuhammedOP2mo ago
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?
Vlad
Vlad2mo ago
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
Muhammed
MuhammedOP2mo ago
okay thanks so I think nextauth would be better for the session tokens right
LightTab2
LightTab22mo ago
Database | Better Auth
Learn how to use a database with Better Auth.
LightTab2
LightTab22mo ago
You should get them from your backend friends

Did you find this page helpful?