What is the Better Auth equivalent to the Next Auth Callbacks?

in next auth if we wanted to control what happens when an action is performed, like sign in, we used a callback in the auth config. what is the equivalent in better auth?
Was this page helpful?