findUserRoles Customizing Session Response

Could you please help me with an example to understand how would be the findUserRoles method to be able to customize the session in betterauth https://www.better-auth.com/docs/concepts/session-management#customizing-session-response:next:
Session Management | Better Auth
Better Auth session management.
No description
1 Reply
Prashant
Prashant2w ago
I think its just a call to your db

Did you find this page helpful?