Hooks are a perfect way to intercept every request and authorize the signed in user before performing any server actions. You can also pass the signed in users details directly to your server functions by assigning the user object to locals.