DN_Dev
Explore posts from serversBABetter Auth
•Created by DN_Dev on 4/23/2025 in #help
Session Caching with Custom Fields Workaround
I do hope eventually a hook or something is added so that we can modify what is stored in the cookie cache
13 replies
BABetter Auth
•Created by DN_Dev on 4/23/2025 in #help
Session Caching with Custom Fields Workaround
Got it, thanks
13 replies
BABetter Auth
•Created by DN_Dev on 4/23/2025 in #help
Session Caching with Custom Fields Workaround
Hmm...I use the table inheritance pattern where user table is the base and the roles share a primary key with the user table. Seems like I would have to use the custom session plugin here, which means no caching
13 replies
BABetter Auth
•Created by DN_Dev on 4/23/2025 in #help
Session Caching with Custom Fields Workaround
Did some more reading, is it that additional fields is used to extend the better auth session response but custom session is used to (potentially) overwrite it in a sense?
13 replies
BABetter Auth
•Created by DN_Dev on 4/23/2025 in #help
Session Caching with Custom Fields Workaround
With Next Auth I used short lived JWTs with a table to refresh them so it hit the db every now and then. Better auth uses sessions which I'm ok with but I don't want to hit the db every request.
The project I intend to use with better auth is new so not sure what I may need just yet, besides role(s). If I can extend the user and session objects with additionalFields and still use the cookie cache that's fine with me.
13 replies
BABetter Auth
•Created by DN_Dev on 4/23/2025 in #help
Session Caching with Custom Fields Workaround
Is using
additionalFields
a viable option here? Would those fields be cached?13 replies
DTDrizzle Team
•Created by DN_Dev on 1/2/2024 in #help
Foreign Key - On Delete
I see, thanks for letting me know
3 replies