how to update the session

So I am quite new to better auth; earlier, next auth used to be my go-to solution, but it's getting rough. I am struggling to understand the designs of better auth. When I use getSession, the session is an object of session and user.

const {data: session} = authClient.useSession(); 
       ?^ session: {
              session: Session;
              user: User:
          }


Now I want to extend the session object. Let's say I want to add orgSlug to the session. Where should I add it? On session.session or session.user?

According to the docs, Customizing Session Response added a "newFiled" to session.user. Where should I add this, and more importantly, how?
Was this page helpful?