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:
image.png
Better Auth session management.
Was this page helpful?