@joshtriedcoding are you making this or asking us to? 👀
@joshtriedcoding need this so that I can switch to better-auth for launchfa.st.
@joshtriedcoding Kinda already there - better-auth.com/docs/concepts/…
@joshtriedcoding Isn't it already kinda supported via the secondary storage feature?
@joshtriedcoding doesn't seem like a great idea reading this tbh
@joshtriedcoding I have it running right now with keyv/ValKey
@joshtriedcoding Yeah ngl when I hooked up my auth through Redis (because I partially rolled it myself), it was SO DAMN FAST.
@joshtriedcoding Using it with DB right now as a secondary database, will love to have it as primary. Happy to contribute 🥹
@joshtriedcoding I mean you can already set it as secondary storage, this would just spare you the setup, right?
@joshtriedcoding Just use sqlite instead of redis. Really. Try it.
@joshtriedcoding What persistent storage are you using that it’s not fast enough? I’m getting <10ms response and most of the time is spent by the CPU to password hash, not retrieve data
@joshtriedcoding I use DragonflyDB for my auth. Hahah. Rust backend. It’s super fast.
@joshtriedcoding Is caching db sessions for 1 min norms 🤔🤔🤔
@joshtriedcoding this is openauth lol, default storing in a KV store
@joshtriedcoding would be sick to see benchmarks against Firebase and Supabase auth
@joshtriedcoding It would be magical to have a way to use @better_auth only to generate JWTs and store minimal info on a Redis instead. Not a bad idea IMO