what tables are a must for better auth to work

hello, i wonder to know why beter-auth uses so many tables and if they are optional i want to delete them specially session table which makes my db usage pretty high and costy. what do you say about this?
4 Replies
heneftees
heneftees2w ago
session table i believe is one of the most critical tables to have. maybe manage by logging users out if idle to remove session if you really need to save costs
bekacru
bekacru2w ago
session table is where the session is stored. If you can use kv store, you can remove it
Kaleb
KalebOP2w ago
thanks, i might try redis on my custom server, is that a good approach? and what about others like jwks?
Ping
Ping2w ago
Yes Redis is fine, currently secondaryStorage only supports session & rate-limit tables, so jwks wont work

Did you find this page helpful?