Allan
BABetter Auth
•Created by Allan on 3/10/2025 in #help
How to store custom data in session?
Is there a way to store custom data in session that is not directly related to the core Better Auth logic like storing user preferences without persisting them into the database? Similar to Laravel's
session()->put('foo', 'bar')
, if that reference makes it clearer what I'd like to achieve.9 replies
BABetter Auth
•Created by Allan on 3/6/2025 in #help
anonymous onLinkAccount() never called using auth.api.signUpEmail() or auth.api.signInEmail()
onLinkAccount() logic seemed to work using authClient.signIn.email() however I am doing the function calls on the backend inside TRPC endpoint and therefore am calling auth.api.signUpEmail() or auth.api.signInEmail() which do not seem to work in this case. Is that expected behaviour?
3 replies