Waterfall in custom session plugin
So currently I am using
Has anyone tackled this before? Any workarounds or patterns you've adopted would be super helpful!
customSessionPlugin to decorate my session. I have user_preferences schema, that has 1:1 realtionship with user. This create waterfall chain first session-> user->user_preferences. The waterfall between session and user makes absolute sense but I was wondering if we could avoid waterfall between user and user_preferences. I was going through code of fetchSession and it seems this is not possible in better-auth. Has anyone tackled this before? Any workarounds or patterns you've adopted would be super helpful!
GitHub
The most comprehensive authentication framework for TypeScript - better-auth/better-auth